Class AzureStorageQueueAutoConfiguration
java.lang.Object
com.azure.spring.cloud.autoconfigure.storage.queue.AzureStorageQueueAutoConfiguration
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties
@ConditionalOnClass(com.azure.storage.queue.QueueServiceClientBuilder.class)
@ConditionalOnProperty(value={"spring.cloud.azure.storage.queue.enabled","spring.cloud.azure.storage.enabled"},
havingValue="true",
matchIfMissing=true)
@ConditionalOnAnyProperty(prefixes={"spring.cloud.azure.storage.queue","spring.cloud.azure.storage"},
name={"account-name","endpoint","connection-string"})
@Import(AzureStorageConfiguration.class)
public class AzureStorageQueueAutoConfiguration
extends Object
Auto-configuration
for Azure Storage Queue support.- Since:
- 4.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.storage.queue.QueueServiceAsyncClient
queueServiceAsyncClient
(com.azure.storage.queue.QueueServiceClientBuilder builder) Autoconfigure theQueueServiceAsyncClient
instance.com.azure.storage.queue.QueueServiceClient
queueServiceClient
(com.azure.storage.queue.QueueServiceClientBuilder builder) Autoconfigure theQueueServiceClient
instance.
-
Constructor Details
-
AzureStorageQueueAutoConfiguration
public AzureStorageQueueAutoConfiguration()
-
-
Method Details
-
queueServiceClient
@Bean @ConditionalOnMissingBean public com.azure.storage.queue.QueueServiceClient queueServiceClient(com.azure.storage.queue.QueueServiceClientBuilder builder) Autoconfigure theQueueServiceClient
instance.- Parameters:
builder
- theQueueServiceClientBuilder
to build the instance.- Returns:
- the queue service client.
-
queueServiceAsyncClient
@Bean @ConditionalOnMissingBean public com.azure.storage.queue.QueueServiceAsyncClient queueServiceAsyncClient(com.azure.storage.queue.QueueServiceClientBuilder builder) Autoconfigure theQueueServiceAsyncClient
instance.- Parameters:
builder
- theQueueServiceClientBuilder
to build the instance.- Returns:
- the queue service async client.
-