@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(value=org.springframework.kafka.core.KafkaTemplate.class)
@ConditionalOnProperty(value="spring.cloud.azure.eventhubs.kafka.enabled",
havingValue="true",
matchIfMissing=true)
@AutoConfigureAfter(value={AzureEventHubsAutoConfiguration.class,AzureEventHubsResourceManagerAutoConfiguration.class})
public class AzureEventHubsKafkaAutoConfiguration
extends Object
KafkaProperties| Constructor and Description |
|---|
AzureEventHubsKafkaAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.boot.autoconfigure.kafka.KafkaProperties |
azureKafkaProperties(com.azure.spring.core.connectionstring.ConnectionStringProvider<com.azure.spring.core.service.AzureServiceType.EventHubs> connectionStringProvider) |
com.azure.spring.core.connectionstring.StaticConnectionStringProvider<com.azure.spring.core.service.AzureServiceType.EventHubs> |
eventHubsKafkaConnectionString(org.springframework.core.env.Environment environment) |
public AzureEventHubsKafkaAutoConfiguration()
@Bean
@ConditionalOnProperty(value="spring.cloud.azure.eventhubs.connection-string")
@ConditionalOnMissingBean(value=com.azure.spring.core.service.AzureServiceType.EventHubs.class,
parameterizedContainer=com.azure.spring.core.connectionstring.ConnectionStringProvider.class)
public com.azure.spring.core.connectionstring.StaticConnectionStringProvider<com.azure.spring.core.service.AzureServiceType.EventHubs> eventHubsKafkaConnectionString(org.springframework.core.env.Environment environment)
@Primary
@Bean
@ConditionalOnBean(value=com.azure.spring.core.service.AzureServiceType.EventHubs.class,
parameterizedContainer=com.azure.spring.core.connectionstring.ConnectionStringProvider.class)
public org.springframework.boot.autoconfigure.kafka.KafkaProperties azureKafkaProperties(com.azure.spring.core.connectionstring.ConnectionStringProvider<com.azure.spring.core.service.AzureServiceType.EventHubs> connectionStringProvider)
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.