Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Pool
- poolLogFunc :: Pool -> String -> IO ()
- poolRetryPolicy :: Pool -> RetryPolicyM IO
- withPool :: RetryPolicyM IO -> (String -> IO ()) -> FranzPath -> (Pool -> IO a) -> IO a
- withReconnection :: Pool -> (Connection -> IO a) -> IO a
- data Reconnect = Reconnect
- atomicallyReconnecting :: Int -> STM a -> IO a
- fetchWithPool :: Pool -> Query -> (STM Response -> IO r) -> IO r
Documentation
poolRetryPolicy :: Pool -> RetryPolicyM IO Source #
withReconnection :: Pool -> (Connection -> IO a) -> IO a Source #
Run an action which takes a Connection
, reconnecting whenever it throws an exception.
Instances
Eq Reconnect Source # | |
Show Reconnect Source # | |
Exception Reconnect Source # | |
Defined in Database.Franz.Client.Reconnect toException :: Reconnect -> SomeException # fromException :: SomeException -> Maybe Reconnect # displayException :: Reconnect -> String # |