#include <partition_client.hpp>
PartitionClient is used to receive events from an Event Hub partition.
This type is instantiated from the [ConsumerClient] type, using [ConsumerClient.CreatePartitionClient].
◆ ~PartitionClient()
Azure::Messaging::EventHubs::PartitionClient::~PartitionClient |
( |
| ) |
|
|
virtual |
Destroy this partition client.
◆ ReceiveEvents()
std::vector< std::shared_ptr< const Models::ReceivedEventData > > Azure::Messaging::EventHubs::PartitionClient::ReceiveEvents |
( |
uint32_t |
maxMessages, |
|
|
Core::Context const & |
context = {} |
|
) |
| |
Receive events from the partition.
- Parameters
-
maxMessages | The maximum number of messages to receive. |
context | A context to control the request lifetime. |
- Returns
- A vector of received events.
The documentation for this class was generated from the following files: