Uses of Class
com.azure.messaging.eventhubs.EventHubClientBuilder
Package
Description
Package containing classes for creating
EventHubProducerAsyncClient
,
EventHubProducerClient
,
EventHubConsumerAsyncClient
,
EventHubConsumerClient
, or
EventProcessorClient
to perform operations on Azure Event Hubs.-
Uses of EventHubClientBuilder in com.azure.messaging.eventhubs
Modifier and TypeMethodDescriptionEventHubClientBuilder.clientOptions
(ClientOptions clientOptions) Sets the client options.EventHubClientBuilder.configuration
(Configuration configuration) Sets the configuration store that is used during construction of the service client.EventHubClientBuilder.connectionString
(String connectionString) Sets the credential information given a connection string to the Event Hub instance.EventHubClientBuilder.connectionString
(String connectionString, String eventHubName) Sets the credential information given a connection string to the Event Hubs namespace and name to a specific Event Hub instance.EventHubClientBuilder.consumerGroup
(String consumerGroup) Sets the name of the consumer group this consumer is associated with.EventHubClientBuilder.credential
(AzureNamedKeyCredential credential) Sets the credential information for which Event Hub instance to connect to, and how to authorize against it.EventHubClientBuilder.credential
(AzureSasCredential credential) Sets the credential information for which Event Hub instance to connect to, and how to authorize against it.EventHubClientBuilder.credential
(TokenCredential credential) Sets theTokenCredential
used to authorize requests sent to the service.EventHubClientBuilder.credential
(String fullyQualifiedNamespace, String eventHubName, AzureNamedKeyCredential credential) Sets the credential information for which Event Hub instance to connect to, and how to authorize against it.EventHubClientBuilder.credential
(String fullyQualifiedNamespace, String eventHubName, AzureSasCredential credential) Sets the credential information for which Event Hub instance to connect to, and how to authorize against it.EventHubClientBuilder.credential
(String fullyQualifiedNamespace, String eventHubName, TokenCredential credential) Sets the credential information for which Event Hub instance to connect to, and how to authorize against it.EventHubClientBuilder.customEndpointAddress
(String customEndpointAddress) Sets a custom endpoint address when connecting to the Event Hubs service.EventHubClientBuilder.eventHubName
(String eventHubName) Sets the name of the Event Hub to connect the client to.EventHubClientBuilder.fullyQualifiedNamespace
(String fullyQualifiedNamespace) Sets the fully qualified name for the Event Hubs namespace.EventHubClientBuilder.prefetchCount
(int prefetchCount) Sets the count used by the receiver to control the number of events the Event Hub consumer will actively receive and queue locally without regard to whether a receive operation is currently active.EventHubClientBuilder.proxyOptions
(ProxyOptions proxyOptions) Sets the proxy configuration to use forEventHubAsyncClient
.EventHubClientBuilder.retry
(AmqpRetryOptions retryOptions) Deprecated.EventHubClientBuilder.retryOptions
(AmqpRetryOptions retryOptions) Sets the retry policy forEventHubAsyncClient
.EventHubClientBuilder.shareConnection()
Toggles the builder to use the same connection for producers or consumers that are built from this instance.EventHubClientBuilder.transportType
(AmqpTransportType transport) Sets the transport type by which all the communication with Azure Event Hubs occurs.
retryOptions(AmqpRetryOptions)
.