libbmq
a5f8a06ba1d16cb5a65643e1fa7f1a1d6aadef40
|
#include <bmqt_sessionoptions.h>
Public Member Functions | |
SessionOptions (bslma::Allocator *allocator=0) | |
SessionOptions (const SessionOptions &other, bslma::Allocator *allocator=0) | |
SessionOptions & | setBrokerUri (const bslstl::StringRef &value) |
Set the broker URI to the specified value . More... | |
SessionOptions & | setProcessNameOverride (const bslstl::StringRef &value) |
Set an override of the proces name to the specified value . More... | |
SessionOptions & | setNumProcessingThreads (int value) |
Set the number of processing threads to the specified value . More... | |
SessionOptions & | setBlobBufferSize (int value) |
Set the specified value for the size of blobs buffers. More... | |
SessionOptions & | setChannelHighWatermark (bsls::Types::Int64 value) |
SessionOptions & | setStatsDumpInterval (const bsls::TimeInterval &value) |
SessionOptions & | setConnectTimeout (const bsls::TimeInterval &value) |
Set the timeout for connecting to the broker to the specified value . More... | |
SessionOptions & | setDisconnectTimeout (const bsls::TimeInterval &value) |
SessionOptions & | setOpenQueueTimeout (const bsls::TimeInterval &value) |
Set the timeout for opening a queue to the specified value . More... | |
SessionOptions & | setConfigureQueueTimeout (const bsls::TimeInterval &value) |
SessionOptions & | setCloseQueueTimeout (const bsls::TimeInterval &value) |
Set the timeout for closing a queue to the specified value . More... | |
SessionOptions & | setHostHealthMonitor (const bsl::shared_ptr< bmqpi::HostHealthMonitor > &monitor) |
SessionOptions & | setTraceOptions (const bsl::shared_ptr< bmqpi::DTContext > &dtContext, const bsl::shared_ptr< bmqpi::DTTracer > &dtTracer) |
SessionOptions & | configureEventQueue (int queueSize, int lowWatermark, int highWatermark) |
SessionOptions & | configureEventQueue (int lowWatermark, int highWatermark) |
const bsl::string & | brokerUri () const |
Get the broker URI. More... | |
const bsl::string & | processNameOverride () const |
Return the process name override. More... | |
int | numProcessingThreads () const |
Get the number of processing threads. More... | |
int | blobBufferSize () const |
Get the size of the blobs buffer. More... | |
bsls::Types::Int64 | channelHighWatermark () const |
Get the channel high watermark. More... | |
const bsls::TimeInterval & | statsDumpInterval () const |
Get the stats dump interval. More... | |
const bsls::TimeInterval & | connectTimeout () const |
Get the timeout for connecting to the broker. More... | |
const bsls::TimeInterval & | disconnectTimeout () const |
Get the timeout for disconnecting from the broker. More... | |
const bsls::TimeInterval & | openQueueTimeout () const |
Get the timeout for opening a queue. More... | |
const bsls::TimeInterval & | configureQueueTimeout () const |
Get the timeout for configuring or disconfiguring a queue. More... | |
const bsls::TimeInterval & | closeQueueTimeout () const |
Get the timeout for closing a queue. More... | |
const bsl::shared_ptr< bmqpi::HostHealthMonitor > & | hostHealthMonitor () const |
const bsl::shared_ptr< bmqpi::DTContext > & | traceContext () const |
Get the Distributed Trace context object. More... | |
const bsl::shared_ptr< bmqpi::DTTracer > & | tracer () const |
Get the Distributed Trace tracer object. More... | |
int | eventQueueLowWatermark () const |
int | eventQueueHighWatermark () const |
int | eventQueueSize () const |
bsl::ostream & | print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const |
Static Public Attributes | |
static const char | k_BROKER_DEFAULT_URI [] |
Default URI of the bmqbrkr to connect to. More... | |
static const int | k_BROKER_DEFAULT_PORT = 30114 |
Default port the bmqbrkr is listening to for client to connect. More... | |
static const int | k_QUEUE_OPERATION_DEFAULT_TIMEOUT |
value-semantic type for options to configure a session with a BlazingMQ broker
|
explicit |
Create a new SessionOptions using the optionally specified allocator
.
BloombergLP::bmqt::SessionOptions::SessionOptions | ( | const SessionOptions & | other, |
bslma::Allocator * | allocator = 0 |
||
) |
Create a new SessionOptions by copying values from the specified other
, using the optionally specified allocator
.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the specified value
(in bytes) for the channel high watermark. The behavior is undefined unless 8 * 1024 * 1024 < value
.
|
inline |
Set the statsDumpInterval to the specified value
. The behavior is undefined unless value
is a multiple of 30s and less than 60 minutes.
|
inline |
|
inline |
Set the timeout for disconnecting from the broker to the specified value
.
|
inline |
|
inline |
Set the timeout for configuring or deconfiguring a queue to the specified value
.
|
inline |
|
inline |
Set a HostHealthMonitor
object that will notify the session when the health of the host has changed.
|
inline |
Set the DTContext
and DTTracer
objects needed to integrate with Distributed Trace frameworks. Either both arguments must point to valid instances, or both must be empty shared_ptr's; if either is an empty shared_ptr and the other is not, then behavior is undefined.
References tracer().
|
inline |
DEPRECATED: Use 'configureEventQueue(int lowWatermark, int highWatermark)' instead. This method will be marked as BSLS_ANNOTATION_DEPRECATED
in future release of libbmq.
|
inline |
Configure the EventQueue notification watermarks thresholds with the specified lowWatermark
and highWatermark
value. Refer to the component level documentation for explanation of those watermarks. The behavior is undefined unless lowWatermark < highWatermark
.
|
inline |
Referenced by BloombergLP::bmqt::operator!=(), and BloombergLP::bmqt::operator==().
|
inline |
|
inline |
Referenced by BloombergLP::bmqt::operator!=(), and BloombergLP::bmqt::operator==().
|
inline |
Referenced by BloombergLP::bmqt::operator!=(), and BloombergLP::bmqt::operator==().
|
inline |
Referenced by BloombergLP::bmqt::operator!=(), and BloombergLP::bmqt::operator==().
|
inline |
Referenced by BloombergLP::bmqt::operator!=(), and BloombergLP::bmqt::operator==().
|
inline |
Referenced by BloombergLP::bmqt::operator!=(), and BloombergLP::bmqt::operator==().
|
inline |
|
inline |
Referenced by BloombergLP::bmqt::operator!=(), and BloombergLP::bmqt::operator==().
|
inline |
Referenced by BloombergLP::bmqt::operator!=(), and BloombergLP::bmqt::operator==().
|
inline |
Referenced by BloombergLP::bmqt::operator!=(), and BloombergLP::bmqt::operator==().
|
inline |
Referenced by BloombergLP::bmqt::operator!=(), and BloombergLP::bmqt::operator==().
|
inline |
Referenced by BloombergLP::bmqt::operator!=(), and BloombergLP::bmqt::operator==().
|
inline |
Referenced by BloombergLP::bmqt::operator!=(), BloombergLP::bmqt::operator==(), and setTraceOptions().
|
inline |
Referenced by BloombergLP::bmqt::operator!=(), and BloombergLP::bmqt::operator==().
|
inline |
Referenced by BloombergLP::bmqt::operator!=(), and BloombergLP::bmqt::operator==().
|
inline |
DEPRECATED: This parameter is no longer relevant and will be removed in future release of libbmq.
bsl::ostream& BloombergLP::bmqt::SessionOptions::print | ( | bsl::ostream & | stream, |
int | level = 0 , |
||
int | spacesPerLevel = 4 |
||
) | const |
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.
Referenced by BloombergLP::bmqt::operator<<().
|
static |
|
static |
|
static |
The default, and minimum recommended, value for queue operations (open, configure, close).