@ConditionalOnClass(value=com.azure.messaging.eventhubs.EventHubClientBuilder.class)
@ConditionalOnProperty(value="spring.cloud.azure.eventhubs.enabled",
havingValue="true",
matchIfMissing=true)
@ConditionalOnAnyProperty(prefix="spring.cloud.azure.eventhubs",
name={"connection-string","namespace"})
@Import(value={com.azure.spring.cloud.autoconfigure.eventhubs.AzureEventHubsClientBuilderConfiguration.class,com.azure.spring.cloud.autoconfigure.eventhubs.AzureEventHubsConsumerClientConfiguration.class,com.azure.spring.cloud.autoconfigure.eventhubs.AzureEventHubsProducerClientConfiguration.class,AzureBlobCheckpointStoreConfiguration.class,com.azure.spring.cloud.autoconfigure.eventhubs.AzureEventHubsProcessorClientConfiguration.class})
public class AzureEventHubsAutoConfiguration
extends AzureServiceConfigurationBase
azureGlobalProperties| Constructor and Description |
|---|
AzureEventHubsAutoConfiguration(AzureGlobalProperties azureGlobalProperties) |
| Modifier and Type | Method and Description |
|---|---|
AzureEventHubsProperties |
azureEventHubsProperties() |
com.azure.spring.core.connectionstring.StaticConnectionStringProvider<com.azure.spring.core.service.AzureServiceType.EventHubs> |
eventHubsStaticConnectionStringProvider(AzureEventHubsProperties eventHubsProperties) |
loadPropertiespublic AzureEventHubsAutoConfiguration(AzureGlobalProperties azureGlobalProperties)
@Bean @ConfigurationProperties(value="spring.cloud.azure.eventhubs") public AzureEventHubsProperties azureEventHubsProperties()
@Bean @ConditionalOnProperty(value="spring.cloud.azure.eventhubs.connection-string") public com.azure.spring.core.connectionstring.StaticConnectionStringProvider<com.azure.spring.core.service.AzureServiceType.EventHubs> eventHubsStaticConnectionStringProvider(AzureEventHubsProperties eventHubsProperties)
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.