@Lazy @Configuration @EnableConfigurationProperties(value=ServiceBusProperties.class) @ConditionalOnProperty(prefix="azure.servicebus", value="connection-string") public class ServiceBusAutoConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
private ServiceBusProperties |
properties |
| Constructor and Description |
|---|
ServiceBusAutoConfiguration(ServiceBusProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
private String |
getHashNamespace() |
com.microsoft.azure.servicebus.QueueClient |
queueClient() |
private void |
sendTelemetry() |
com.microsoft.azure.servicebus.SubscriptionClient |
subscriptionClient() |
com.microsoft.azure.servicebus.TopicClient |
topicClient() |
private final ServiceBusProperties properties
public ServiceBusAutoConfiguration(ServiceBusProperties properties)
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(prefix="azure.servicebus",
value={"queue-name","queue-receive-mode"})
public com.microsoft.azure.servicebus.QueueClient queueClient()
throws InterruptedException,
com.microsoft.azure.servicebus.primitives.ServiceBusException
InterruptedExceptioncom.microsoft.azure.servicebus.primitives.ServiceBusException@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(prefix="azure.servicebus",
value="topic-name")
public com.microsoft.azure.servicebus.TopicClient topicClient()
throws InterruptedException,
com.microsoft.azure.servicebus.primitives.ServiceBusException
InterruptedExceptioncom.microsoft.azure.servicebus.primitives.ServiceBusException@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(prefix="azure.servicebus",
value={"topic-name","subscription-name","subscription-receive-mode"})
public com.microsoft.azure.servicebus.SubscriptionClient subscriptionClient()
throws com.microsoft.azure.servicebus.primitives.ServiceBusException,
InterruptedException
com.microsoft.azure.servicebus.primitives.ServiceBusExceptionInterruptedExceptionprivate String getHashNamespace()
@PostConstruct private void sendTelemetry()
Copyright © 2019 Microsoft. All rights reserved.