17 #ifndef INCLUDED_BMQA_ABSTRACTSESSION
18 #define INCLUDED_BMQA_ABSTRACTSESSION
38 #include <bsl_functional.h>
39 #include <bsls_timeinterval.h>
40 #include <bsls_types.h>
95 start(
const bsls::TimeInterval& timeout = bsls::TimeInterval());
106 startAsync(
const bsls::TimeInterval& timeout = bsls::TimeInterval());
182 bsls::Types::Uint64 flags,
184 const bsls::TimeInterval& timeout = bsls::TimeInterval());
204 bsls::Types::Uint64 flags,
206 const bsls::TimeInterval& timeout = bsls::TimeInterval());
215 bsls::Types::Uint64 flags,
217 const bsls::TimeInterval& timeout = bsls::TimeInterval());
238 bsls::Types::Uint64 flags,
241 const bsls::TimeInterval& timeout = bsls::TimeInterval());
250 const bsls::TimeInterval& timeout = bsls::TimeInterval());
267 const bsls::TimeInterval& timeout = bsls::TimeInterval());
276 const bsls::TimeInterval& timeout = bsls::TimeInterval());
282 const bsls::TimeInterval& timeout = bsls::TimeInterval());
302 const bsls::TimeInterval& timeout = bsls::TimeInterval());
322 const bsls::TimeInterval& timeout = bsls::TimeInterval());
330 const bsls::TimeInterval& timeout = bsls::TimeInterval());
352 const bsls::TimeInterval& timeout = bsls::TimeInterval());
369 nextEvent(
const bsls::TimeInterval& timeout = bsls::TimeInterval());
Provide Value-Semantic Type for a close queue operation status.
Provide a builder for batching confirmation messages.
Provide a generic variant encompassing all types of events.
Provide a builder for bmqa::MessageEvent objects.
Provide a VST representing message properties.
Provide Value-Semantic Type for an open queue operation status.
Provide a value-semantic efficient identifier for a queue.
Provide a value-semantic type for options related to a queue.
Provide value-semantic type and utilities for a BlazingMQ queue URI.
A pure protocol for a session.
Definition: bmqa_abstractsession.h:50
virtual int confirmMessages(ConfirmEventBuilder *builder)
virtual int confirmMessage(const MessageConfirmationCookie &cookie)
virtual int startAsync(const bsls::TimeInterval &timeout=bsls::TimeInterval())
virtual int start(const bsls::TimeInterval &timeout=bsls::TimeInterval())
virtual void configureQueueAsync(QueueId *queueId, const bmqt::QueueOptions &options, const ConfigureQueueCallback &callback, const bsls::TimeInterval &timeout=bsls::TimeInterval())
virtual int confirmMessage(const Message &message)
virtual int openQueue(QueueId *queueId, const bmqt::Uri &uri, bsls::Types::Uint64 flags, const bmqt::QueueOptions &options=bmqt::QueueOptions(), const bsls::TimeInterval &timeout=bsls::TimeInterval())
virtual ~AbstractSession()
Destructor.
virtual void closeQueueAsync(QueueId *queueId, const CloseQueueCallback &callback, const bsls::TimeInterval &timeout=bsls::TimeInterval())
virtual int closeQueue(QueueId *queueId, const bsls::TimeInterval &timeout=bsls::TimeInterval())
virtual int configureMessageDumping(const bslstl::StringRef &command)
virtual void finalizeStop()
virtual void loadMessageProperties(MessageProperties *buffer)
virtual int openQueueAsync(QueueId *queueId, const bmqt::Uri &uri, bsls::Types::Uint64 flags, const bmqt::QueueOptions &options=bmqt::QueueOptions(), const bsls::TimeInterval &timeout=bsls::TimeInterval())
bsl::function< void(const bmqa::CloseQueueStatus &result)> CloseQueueCallback
Definition: bmqa_abstractsession.h:73
virtual void loadMessageEventBuilder(MessageEventBuilder *builder)
virtual int getQueueId(QueueId *queueId, const bmqt::Uri &uri)
virtual int closeQueueAsync(QueueId *queueId, const bsls::TimeInterval &timeout=bsls::TimeInterval())
virtual CloseQueueStatus closeQueueSync(QueueId *queueId, const bsls::TimeInterval &timeout=bsls::TimeInterval())
bsl::function< void(const bmqa::ConfigureQueueStatus &result)> ConfigureQueueCallback
Definition: bmqa_abstractsession.h:66
virtual void openQueueAsync(bmqa::QueueId *queueId, const bmqt::Uri &uri, bsls::Types::Uint64 flags, const OpenQueueCallback &callback, const bmqt::QueueOptions &options=bmqt::QueueOptions(), const bsls::TimeInterval &timeout=bsls::TimeInterval())
bsl::function< void(const bmqa::OpenQueueStatus &result)> OpenQueueCallback
Definition: bmqa_abstractsession.h:59
virtual int getQueueId(QueueId *queueId, const bmqt::CorrelationId &correlationId)
virtual OpenQueueStatus openQueueSync(QueueId *queueId, const bmqt::Uri &uri, bsls::Types::Uint64 flags, const bmqt::QueueOptions &options=bmqt::QueueOptions(), const bsls::TimeInterval &timeout=bsls::TimeInterval())
virtual int post(const MessageEvent &event)
virtual int configureQueue(QueueId *queueId, const bmqt::QueueOptions &options, const bsls::TimeInterval &timeout=bsls::TimeInterval())
virtual Event nextEvent(const bsls::TimeInterval &timeout=bsls::TimeInterval())
virtual void loadConfirmEventBuilder(ConfirmEventBuilder *builder)
virtual int configureQueueAsync(QueueId *queueId, const bmqt::QueueOptions &options, const bsls::TimeInterval &timeout=bsls::TimeInterval())
virtual ConfigureQueueStatus configureQueueSync(QueueId *queueId, const bmqt::QueueOptions &options, const bsls::TimeInterval &timeout=bsls::TimeInterval())
Definition: bmqa_closequeuestatus.h:62
Mechanism to build a batch of CONFIRM messages.
Definition: bmqa_confirmeventbuilder.h:157
A variant type encompassing all types of events.
Definition: bmqa_event.h:69
Cookie for async message confirmation.
Definition: bmqa_message.h:131
A builder for MessageEvent objects.
Definition: bmqa_messageeventbuilder.h:319
Definition: bmqa_messageevent.h:64
Provide a VST representing message properties.
Definition: bmqa_messageproperties.h:92
A message sent/received to/from the BlazingMQ broker.
Definition: bmqa_message.h:170
Definition: bmqa_openqueuestatus.h:62
Value-semantic efficient identifier for a queue.
Definition: bmqa_queueid.h:59
Definition: bmqt_correlationid.h:193
Value-semantic type for options related to a queue.
Definition: bmqt_queueoptions.h:66
Value semantic type representing a URI.
Definition: bmqt_uri.h:157
Definition: bmqa_abstractsession.h:42