pulsar-client-cpp
|
#include <MessageIdBuilder.h>
Public Member Functions | |
MessageId | build () const |
MessageIdBuilder & | ledgerId (int64_t ledgerId) |
MessageIdBuilder & | entryId (int64_t entryId) |
MessageIdBuilder & | partition (int32_t partition) |
MessageIdBuilder & | batchIndex (int32_t batchIndex) |
MessageIdBuilder & | batchSize (int32_t batchSize) |
Static Public Member Functions | |
static MessageIdBuilder | from (const MessageId &messageId) |
static MessageIdBuilder | from (const proto::MessageIdData &messageIdData) |
The builder to build a MessageId.
Example of building a single MessageId:
Example of building a batched MessageId:
MessageIdBuilder & pulsar::MessageIdBuilder::batchIndex | ( | int32_t | batchIndex | ) |
Set the batch index.
Default: -1
MessageIdBuilder & pulsar::MessageIdBuilder::batchSize | ( | int32_t | batchSize | ) |
Set the batch size.
Default: 0
MessageIdBuilder & pulsar::MessageIdBuilder::entryId | ( | int64_t | entryId | ) |
Set the entry ID field.
Default: -1L
|
static |
Create an instance that copies the data from messageId.
|
static |
Create an instance from the proto::MessageIdData instance.
MessageIdBuilder & pulsar::MessageIdBuilder::ledgerId | ( | int64_t | ledgerId | ) |
Set the ledger ID field.
Default: -1L
MessageIdBuilder & pulsar::MessageIdBuilder::partition | ( | int32_t | partition | ) |
Set the partition index.
Default: -1