simplexmq-6.5.0.16: SimpleXMQ message broker
Safe HaskellSafe-Inferred
LanguageHaskell2010

Simplex.Messaging.Agent.RetryInterval

Documentation

data RetryInterval Source #

Constructors

RetryInterval 

Fields

data RetryIntervalMode Source #

Constructors

RISlow 
RIFast 

Instances

Instances details
Show RetryIntervalMode Source # 
Instance details

Defined in Simplex.Messaging.Agent.RetryInterval

Methods

showsPrec :: Int -> RetryIntervalMode -> ShowS

show :: RetryIntervalMode -> String

showList :: [RetryIntervalMode] -> ShowS

Eq RetryIntervalMode Source # 
Instance details

Defined in Simplex.Messaging.Agent.RetryInterval

data RI2State Source #

Constructors

RI2State 

Fields

Instances

Instances details
Show RI2State Source # 
Instance details

Defined in Simplex.Messaging.Agent.RetryInterval

Methods

showsPrec :: Int -> RI2State -> ShowS

show :: RI2State -> String

showList :: [RI2State] -> ShowS

withRetryInterval :: forall m a. MonadIO m => RetryInterval -> (Int64 -> m a -> m a) -> m a Source #

withRetryIntervalCount :: forall m a. MonadIO m => RetryInterval -> (Int -> Int64 -> m a -> m a) -> m a Source #

withRetryForeground :: forall m a. MonadIO m => RetryInterval -> STM Bool -> STM Bool -> (Int64 -> m a -> m a) -> m a Source #

withRetryLock2 :: forall m. MonadIO m => RetryInterval2 -> TMVar () -> (RI2State -> (RetryIntervalMode -> m ()) -> m ()) -> m () Source #

nextRetryDelay :: Int64 -> Int64 -> RetryInterval -> Int64 Source #