public class DefaultEventHubClientFactory extends Object implements EventHubClientFactory, org.springframework.beans.factory.DisposableBean
EventHubClientFactory.| Constructor and Description |
|---|
DefaultEventHubClientFactory(EventHubConnectionStringProvider connectionStringProvider,
String checkpointConnectionString) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Optional<com.microsoft.azure.eventprocessorhost.EventProcessorHost> |
getEventProcessorHost(String name,
String consumerGroup) |
com.microsoft.azure.eventhubs.EventHubClient |
getOrCreateClient(String name) |
com.microsoft.azure.eventprocessorhost.EventProcessorHost |
getOrCreateEventProcessorHost(String name,
String consumerGroup) |
com.microsoft.azure.eventhubs.PartitionSender |
getOrCreatePartitionSender(String eventhub,
String partition) |
com.microsoft.azure.eventprocessorhost.EventProcessorHost |
removeEventProcessorHost(String name,
String consumerGroup) |
public DefaultEventHubClientFactory(@NonNull
EventHubConnectionStringProvider connectionStringProvider,
String checkpointConnectionString)
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic com.microsoft.azure.eventhubs.EventHubClient getOrCreateClient(String name)
getOrCreateClient in interface EventHubClientFactorypublic com.microsoft.azure.eventhubs.PartitionSender getOrCreatePartitionSender(String eventhub, String partition)
getOrCreatePartitionSender in interface EventHubClientFactorypublic com.microsoft.azure.eventprocessorhost.EventProcessorHost getOrCreateEventProcessorHost(String name, String consumerGroup)
getOrCreateEventProcessorHost in interface EventHubClientFactorypublic Optional<com.microsoft.azure.eventprocessorhost.EventProcessorHost> getEventProcessorHost(String name, String consumerGroup)
getEventProcessorHost in interface EventHubClientFactorypublic com.microsoft.azure.eventprocessorhost.EventProcessorHost removeEventProcessorHost(String name, String consumerGroup)
removeEventProcessorHost in interface EventHubClientFactoryCopyright © 2019 Pivotal Software, Inc.. All rights reserved.