17#ifndef INCLUDED_RMQA_CONSUMER
18#define INCLUDED_RMQA_CONSUMER
20#include <rmqa_messageguard.h>
21#include <rmqa_topologyupdate.h>
23#include <rmqp_consumer.h>
24#include <rmqp_topologyupdate.h>
25#include <rmqt_future.h>
26#include <rmqt_message.h>
27#include <rmqt_result.h>
29#include <bsl_functional.h>
30#include <bslma_managedptr.h>
32namespace BloombergLP {
50 explicit Consumer(bslma::ManagedPtr<rmqp::Consumer>& impl);
69 cancelAndDrain(
const bsls::TimeInterval& timeout = bsls::TimeInterval(0));
81 const bsls::TimeInterval& timeout = bsls::TimeInterval(0));
95 bslma::ManagedPtr<rmqp::Consumer> d_impl;
Provide a RabbitMQ Async Consumer API.
Definition: rmqa_consumer.h:41
Consumer(bslma::ManagedPtr< rmqp::Consumer > &impl)
Definition: rmqa_consumer.cpp:29
rmqt::Result cancelAndDrain(const bsls::TimeInterval &timeout=bsls::TimeInterval(0))
Tells the broker to stop delivering messages to this consumer.
Definition: rmqa_consumer.cpp:42
rmqt::Result updateTopology(const rmqa::TopologyUpdate &topologyUpdate, const bsls::TimeInterval &timeout=bsls::TimeInterval(0))
Definition: rmqa_consumer.cpp:49
void cancel()
Tells the broker to stop delivering messages to this consumer. it's still possible to nack/ack messag...
Definition: rmqa_consumer.cpp:34
~Consumer()
Destructor stops the consumer.
Definition: rmqa_consumer.cpp:64
Definition: rmqa_topologyupdate.h:27
A result of an operation.
Definition: rmqt_result.h:37