@Configuration @AutoConfigureAfter(value=AzureContextAutoConfiguration.class) @ConditionalOnClass(value=com.microsoft.azure.eventhubs.EventHubClient.class) @ConditionalOnProperty(value="spring.cloud.azure.eventhub.enabled", matchIfMissing=true) @EnableConfigurationProperties(value=AzureEventHubProperties.class) public class AzureEventHubAutoConfiguration extends Object
EventHubOperation| Constructor and Description |
|---|
AzureEventHubAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
EventHubClientFactory |
clientFactory(EventHubConnectionStringProvider connectionStringProvider,
AzureEventHubProperties eventHubProperties,
EnvironmentProvider environmentProvider) |
void |
collectTelemetry() |
EventHubConnectionStringProvider |
eventHubConnectionStringProvider(AzureEventHubProperties eventHubProperties) |
EventHubOperation |
eventHubOperation(EventHubClientFactory clientFactory) |
@PostConstruct public void collectTelemetry()
@Bean @ConditionalOnMissingBean public EventHubOperation eventHubOperation(EventHubClientFactory clientFactory)
@Bean @ConditionalOnMissingBean public EventHubConnectionStringProvider eventHubConnectionStringProvider(AzureEventHubProperties eventHubProperties)
@Bean @ConditionalOnMissingBean public EventHubClientFactory clientFactory(EventHubConnectionStringProvider connectionStringProvider, AzureEventHubProperties eventHubProperties, EnvironmentProvider environmentProvider)
Copyright © 2019 Microsoft. All rights reserved.