Safe Haskell | None |
---|---|
Language | Haskell2010 |
Subscribe to a category and react to messages.
Synopsis
- data Subscription = Subscription {
- categoryName :: Category
- batchSize :: NumberOfMessages
- tickInterval :: Microseconds
- logMessages :: NonEmpty Message -> IO ()
- failureStrategy :: FailureStrategy
- positionStrategy :: PositionStrategy
- handlers :: SubscriptionHandlers
- consumerGroup :: Maybe ConsumerGroup
- condition :: Maybe Condition
- correlation :: Maybe Correlation
- subscribe :: Category -> Subscription
- start :: WithConnection -> Subscription -> IO Void
Documentation
data Subscription Source #
Defines how to subscribe to a category.
Subscription | |
|
subscribe :: Category -> Subscription Source #
Construct a new subscription. For default values see the docs for Subscription
.
start :: WithConnection -> Subscription -> IO Void Source #
Start the subscription. Notice this will never return. You may want to use something like Immortal to ensure this never dies.