Processor uses a ConsumerClient and CheckpointStore to provide automatic load balancing between multiple Processor instances, even in separate processes or on separate machines.
#include <processor.hpp>
◆ Processor() [1/2]
- Parameters
-
consumerClient | A [ConsumerClient] that is used to receive events from the Event Hub. |
checkpointStore | A [CheckpointStore] that is used to load and update checkpoints. |
options | Optional configuration for the processor. |
◆ Processor() [2/2]
Azure::Messaging::EventHubs::Processor::Processor |
( |
Processor const & |
other | ) |
|
|
delete |
◆ Close()
void Azure::Messaging::EventHubs::Processor::Close |
( |
Core::Context const & |
context = {} | ) |
|
|
inline |
◆ NextPartitionClient()
std::shared_ptr< ProcessorPartitionClient > Azure::Messaging::EventHubs::Processor::NextPartitionClient |
( |
Azure::Core::Context const & |
context = {} | ) |
|
Move to the next partition client
- Parameters
-
context | The context to control whether this function is canceled or not. |
- Returns
- A shared pointer to the next partition client.
NextPartitionClient will retrieve the next ProcessorPartitionClient if one is acquired or will block until a new one arrives, or the processor is stopped.
◆ operator=()
◆ Run()
void Azure::Messaging::EventHubs::Processor::Run |
( |
Core::Context const & |
context | ) |
|
- Parameters
-
context | The context to control the request lifetime. |
◆ Start()
void Azure::Messaging::EventHubs::Processor::Start |
( |
Azure::Core::Context const & |
context = {} | ) |
|
- Parameters
-
context | The context to control the request lifetime of the processor. Cancelling this context will stop the processor from running. |
◆ Stop()
void Azure::Messaging::EventHubs::Processor::Stop |
( |
| ) |
|
The documentation for this class was generated from the following files: