ProducerClient can be used to send events to an Event Hub.
#include <producer_client.hpp>
◆ ProducerClient() [1/4]
Azure::Messaging::EventHubs::ProducerClient::ProducerClient |
( |
ProducerClient const & |
other | ) |
|
|
default |
◆ ProducerClient() [2/4]
Azure::Messaging::EventHubs::ProducerClient::ProducerClient |
( |
| ) |
|
|
default |
◆ ProducerClient() [3/4]
Azure::Messaging::EventHubs::ProducerClient::ProducerClient |
( |
std::string const & |
connectionString, |
|
|
std::string const & |
eventHub, |
|
|
ProducerClientOptions |
options = {} |
|
) |
| |
- Parameters
-
connectionString | Event hubs connection string |
eventHub | Event hub name |
options | Additional options for creating the client |
◆ ProducerClient() [4/4]
Azure::Messaging::EventHubs::ProducerClient::ProducerClient |
( |
std::string const & |
fullyQualifiedNamespace, |
|
|
std::string const & |
eventHub, |
|
|
std::shared_ptr< Azure::Core::Credentials::TokenCredential > |
credential, |
|
|
ProducerClientOptions |
options = {} |
|
) |
| |
- Parameters
-
fullyQualifiedNamespace | Fully qualified namespace name |
eventHub | Event hub name |
credential | Credential to use for authentication |
options | Additional options for creating the client |
◆ GetEventHubName()
std::string const & Azure::Messaging::EventHubs::ProducerClient::GetEventHubName |
( |
| ) |
|
|
inline |
Get the fully qualified namespace from the connection string
◆ GetEventHubProperties()
- Parameters
-
context | Context for the operation can be used for request cancellation. |
◆ GetPartitionProperties()
- Parameters
-
partitionID | partition ID to detail. |
context | Context for the operation can be used for request cancellation. |
◆ GetRetryOptions()
Azure::Core::Http::Policies::RetryOptions const & Azure::Messaging::EventHubs::ProducerClient::GetRetryOptions |
( |
| ) |
|
|
inline |
◆ operator=()
◆ SendEventDataBatch()
bool Azure::Messaging::EventHubs::ProducerClient::SendEventDataBatch |
( |
EventDataBatch const & |
eventDataBatch, |
|
|
Core::Context const & |
context = {} |
|
) |
| |
- Parameters
-
eventDataBatch | Batch to send |
context | Request context |
The documentation for this class was generated from the following files: