Class AzureStorageQueueMessagingAutoConfiguration
java.lang.Object
com.azure.spring.cloud.autoconfigure.storage.AzureStorageQueueMessagingAutoConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(com.azure.spring.messaging.storage.queue.core.factory.StorageQueueClientFactory.class)
@ConditionalOnProperty(value="spring.cloud.azure.storage.queue.enabled",
havingValue="true",
matchIfMissing=true)
@ConditionalOnBean(com.azure.spring.cloud.autoconfigure.implementation.storage.queue.properties.AzureStorageQueueProperties.class)
@AutoConfigureAfter(AzureStorageQueueAutoConfiguration.class)
public class AzureStorageQueueMessagingAutoConfiguration
extends Object
Auto-configuration
for Spring Messaging Azure Storage Queue support.- Since:
- 4.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.spring.messaging.storage.queue.support.converter.StorageQueueMessageConverter
Autoconfigure theStorageQueueMessageConverter
instance.com.azure.spring.messaging.storage.queue.core.StorageQueueTemplate
storageQueueTemplate
(com.azure.spring.messaging.storage.queue.core.factory.StorageQueueClientFactory storageQueueClientFactory, com.azure.spring.messaging.storage.queue.support.converter.StorageQueueMessageConverter messageConverter) Autoconfigure theStorageQueueTemplate
instance.
-
Constructor Details
-
AzureStorageQueueMessagingAutoConfiguration
public AzureStorageQueueMessagingAutoConfiguration()
-
-
Method Details
-
storageQueueTemplate
@Bean @ConditionalOnMissingBean public com.azure.spring.messaging.storage.queue.core.StorageQueueTemplate storageQueueTemplate(com.azure.spring.messaging.storage.queue.core.factory.StorageQueueClientFactory storageQueueClientFactory, com.azure.spring.messaging.storage.queue.support.converter.StorageQueueMessageConverter messageConverter) Autoconfigure theStorageQueueTemplate
instance.- Parameters:
storageQueueClientFactory
- the storage queue client factory to create the storage queue clients for the template.messageConverter
- the message converter used by the template.- Returns:
- the storage queue template.
-
messageConverter
@Bean @ConditionalOnMissingBean public com.azure.spring.messaging.storage.queue.support.converter.StorageQueueMessageConverter messageConverter()Autoconfigure theStorageQueueMessageConverter
instance.- Returns:
- the storage queue message converter.
-