Value-semantic type to carry Subscription parameters.
#include <bmqt_subscription.h>
◆ Subscription()
BloombergLP::bmqt::Subscription::Subscription |
( |
| ) |
|
|
inline |
◆ setMaxUnconfirmedMessages()
Subscription & BloombergLP::bmqt::Subscription::setMaxUnconfirmedMessages |
( |
int |
value | ) |
|
|
inline |
Set the maxUnconfirmedMessages to the specified value
. The behavior is undefined unless value >= 0
. If the specified value
is set to 0, it means that the consumer does not receive any messages. This might be useful when the consumer is shutting down and wants to process only pending messages, or when it is unable to process new messages because of transient issues.
Referenced by BloombergLP::bmqt::QueueOptions::setMaxUnconfirmedMessages().
◆ setMaxUnconfirmedBytes()
Subscription & BloombergLP::bmqt::Subscription::setMaxUnconfirmedBytes |
( |
int |
value | ) |
|
|
inline |
◆ setConsumerPriority()
Subscription & BloombergLP::bmqt::Subscription::setConsumerPriority |
( |
int |
value | ) |
|
|
inline |
◆ setExpression()
◆ maxUnconfirmedMessages()
int BloombergLP::bmqt::Subscription::maxUnconfirmedMessages |
( |
| ) |
const |
|
inline |
◆ maxUnconfirmedBytes()
int BloombergLP::bmqt::Subscription::maxUnconfirmedBytes |
( |
| ) |
const |
|
inline |
◆ consumerPriority()
int BloombergLP::bmqt::Subscription::consumerPriority |
( |
| ) |
const |
|
inline |
◆ expression()
◆ hasMaxUnconfirmedMessages()
bool BloombergLP::bmqt::Subscription::hasMaxUnconfirmedMessages |
( |
| ) |
const |
|
inline |
◆ hasMaxUnconfirmedBytes()
bool BloombergLP::bmqt::Subscription::hasMaxUnconfirmedBytes |
( |
| ) |
const |
|
inline |
◆ hasConsumerPriority()
bool BloombergLP::bmqt::Subscription::hasConsumerPriority |
( |
| ) |
const |
|
inline |
◆ print()
bsl::ostream & BloombergLP::bmqt::Subscription::print |
( |
bsl::ostream & |
stream, |
|
|
int |
level = 0 , |
|
|
int |
spacesPerLevel = 4 |
|
) |
| const |
|
inline |
Format this object to the specified output stream
at the (absolute value of) the optionally specified indentation level
and return a reference to stream
. If level
is specified, optionally specify spacesPerLevel
, the number of spaces per indentation level for this and all of its nested objects. If level
is negative, suppress indentation of the first line. If spacesPerLevel
is negative format the entire output on one line, suppressing all but the initial indentation (as governed by level
). If stream
is not valid on entry, this operation has no effect.
References consumerPriority(), maxUnconfirmedBytes(), maxUnconfirmedMessages(), and BloombergLP::bmqt::SubscriptionExpression::print().
Referenced by BloombergLP::bmqt::operator<<().
◆ k_CONSUMER_PRIORITY_MIN
const int BloombergLP::bmqt::Subscription::k_CONSUMER_PRIORITY_MIN |
|
static |
◆ k_CONSUMER_PRIORITY_MAX
const int BloombergLP::bmqt::Subscription::k_CONSUMER_PRIORITY_MAX |
|
static |
◆ k_DEFAULT_MAX_UNCONFIRMED_MESSAGES
const int BloombergLP::bmqt::Subscription::k_DEFAULT_MAX_UNCONFIRMED_MESSAGES |
|
static |
◆ k_DEFAULT_MAX_UNCONFIRMED_BYTES
const int BloombergLP::bmqt::Subscription::k_DEFAULT_MAX_UNCONFIRMED_BYTES |
|
static |
◆ k_DEFAULT_CONSUMER_PRIORITY
const int BloombergLP::bmqt::Subscription::k_DEFAULT_CONSUMER_PRIORITY |
|
static |
The documentation for this class was generated from the following file: