EventDataBatch is used to efficiently pack up EventData before sending it to Event Hubs.
More...
#include <event_data_batch.hpp>
◆ EventDataBatch()
Azure::Messaging::EventHubs::EventDataBatch::EventDataBatch |
( |
EventDataBatch const & |
other | ) |
|
|
inline |
◆ GetMaxBytes()
uint64_t Azure::Messaging::EventHubs::EventDataBatch::GetMaxBytes |
( |
| ) |
const |
|
inline |
◆ GetPartitionId()
std::string Azure::Messaging::EventHubs::EventDataBatch::GetPartitionId |
( |
| ) |
const |
|
inline |
◆ GetPartitionKey()
std::string Azure::Messaging::EventHubs::EventDataBatch::GetPartitionKey |
( |
| ) |
const |
|
inline |
◆ NumberOfEvents()
size_t Azure::Messaging::EventHubs::EventDataBatch::NumberOfEvents |
( |
| ) |
|
|
inline |
◆ operator=()
◆ ToAmqpMessage()
Azure::Core::Amqp::Models::AmqpMessage Azure::Messaging::EventHubs::EventDataBatch::ToAmqpMessage |
( |
| ) |
const |
- Returns
- Azure::Core::Amqp::Models::AmqpMessage
◆ TryAdd() [1/2]
- Parameters
-
message | The message to add to the batch |
- Returns
- true if the message was added to the batch, false otherwise.
◆ TryAdd() [2/2]
_azure_NODISCARD bool Azure::Messaging::EventHubs::EventDataBatch::TryAdd |
( |
std::shared_ptr< Azure::Core::Amqp::Models::AmqpMessage const > const & |
message | ) |
|
|
inline |
- Parameters
-
message | The AMQP message to add to the batch |
- Returns
- true if the message was added to the batch, false otherwise.
The documentation for this class was generated from the following files: