![]() |
Hazelcast C++ Client
Hazelcast C++ Client Library
|
Public Member Functions | |
reliable_topic_config (std::string topic_name) | |
const std::string & | get_name () const |
Gets the name of the reliable topic. More... | |
int | get_read_batch_size () const |
Gets the maximum number of items to read in a batch. More... | |
reliable_topic_config & | set_read_batch_size (int batch_size) |
Sets the read batch size. More... | |
Static Public Attributes | |
static constexpr int | DEFAULT_READ_BATCH_SIZE = 10 |
Definition at line 29 of file reliable_topic_config.h.
const std::string & hazelcast::client::config::reliable_topic_config::get_name | ( | ) | const |
Gets the name of the reliable topic.
Definition at line 362 of file config.cpp.
int hazelcast::client::config::reliable_topic_config::get_read_batch_size | ( | ) | const |
Gets the maximum number of items to read in a batch.
Returned value will always be equal or larger than 1.
Definition at line 366 of file config.cpp.
reliable_topic_config & hazelcast::client::config::reliable_topic_config::set_read_batch_size | ( | int | batch_size | ) |
Sets the read batch size.
The ReliableTopic tries to read a batch of messages from the ringbuffer. It will get at least one, but if there are more available, then it will try to get more to increase throughput. The minimal read batch size can be influenced using the read batch size.
If the readBatchSize is 10 and there are 50 messages available, 10 items are retrieved and processed consecutively.
If the readBatchSize is 10 and there are 2 items available, 2 items are retrieved and processed consecutively.
readBatchSize | the maximum number of items to read in a batch. |
illegal_argument | if readBatchSize is smaller than 1. |
Definition at line 370 of file config.cpp.