◆ ConsumerFunc
Callback function used to receive messages.
The passed implementation is invoked on each message received from the broker. rmqp::MessageGuard is used to pass positive or negative acknowledgments to the broker after processing. The callback will always be invoked from the RabbitContext threadpool.
◆ cancel()
◆ cancelAndDrain()
| rmqt::Result BloombergLP::rmqa::ConsumerImpl::cancelAndDrain |
( |
const bsls::TimeInterval & |
timeout | ) |
|
|
virtual |
Tells the broker to stop delivering messages to this consumer.
- Parameters
-
| timeout | How long to wait for all delivered (unacked) messages to be processed by the user provided callback. If timeout is 0, the method will wait indefinitely for them to complete, unless the client is disconnected from the broker in between. |
- Returns
- a result once all of the remaining messages have been n/acked by the consuming code, or error otherwise e.g. timeout
- Deprecated:
- Note
- this relies on the consumer code processing all of the outstanding messages.
Implements BloombergLP::rmqp::Consumer.
◆ drain()
◆ updateTopologyAsync()
The documentation for this class was generated from the following files: