Azure Storage Queue Service
Send messages to and receive messages from the queues of Azure Queue Storage.
What’s inside
-
Azure Storage Queue Service component, URI syntax:
azure-storage-queue:accountName/queueName
Please refer to the above links for usage and configuration details.
Maven coordinates
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-azure-storage-queue-starter</artifactId>
</dependency> Spring Boot Auto-Configuration
The starter supports 19 options, which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
camel.component.azure-storage-queue.access-key | The account key of the storage account, which authenticates the client together with accountName when credentialType is SHARED_ACCOUNT_KEY or SHARED_KEY_CREDENTIAL. Not used when the credentials option or the serviceClient option is set. | String | |
camel.component.azure-storage-queue.autowired-enabled | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean |
camel.component.azure-storage-queue.bridge-error-handler | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | Boolean |
camel.component.azure-storage-queue.configuration | The configuration that each endpoint of the component starts from, as a copy. The options of the endpoint replace its values. The option is a org.apache.camel.component.azure.storage.queue.QueueConfiguration type. | QueueConfiguration | |
camel.component.azure-storage-queue.create-queue | Whether sendMessage first creates the queue if it does not exist, with the metadata of the CamelAzureStorageQueueMetadata header. The CamelAzureStorageQueueCreateQueue header replaces this option. | false | Boolean |
camel.component.azure-storage-queue.credential-type | How the client authenticates when serviceClient is not set. SHARED_ACCOUNT_KEY and SHARED_KEY_CREDENTIAL both use the credentials option if it is set, and otherwise accountName and accessKey. AZURE_IDENTITY uses the DefaultAzureCredential of azure-identity, which takes the identity from environment variables, a managed identity or a developer tool login. If not set, SHARED_KEY_CREDENTIAL is used when credentials is set, and otherwise SHARED_ACCOUNT_KEY. | shared-account-key | CredentialType |
camel.component.azure-storage-queue.credentials | To use a com.azure.storage.common.StorageSharedKeyCredential, which holds the account name and an account key of the storage account, when credentialType is SHARED_KEY_CREDENTIAL or SHARED_ACCOUNT_KEY. When it is set, the accountName and accessKey options are not used to authenticate. Not used when serviceClient is set. The option is a com.azure.storage.common.StorageSharedKeyCredential type. | StorageSharedKeyCredential | |
camel.component.azure-storage-queue.enabled | Whether to enable auto configuration of the azure-storage-queue component. This is enabled by default. | Boolean | |
camel.component.azure-storage-queue.health-check-consumer-enabled | Used for enabling or disabling all consumer based health checks from this component | true | Boolean |
camel.component.azure-storage-queue.health-check-producer-enabled | Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer checks globally by setting camel.health.producersEnabled=true. | true | Boolean |
camel.component.azure-storage-queue.lazy-start-producer | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | Boolean |
camel.component.azure-storage-queue.max-messages | The maximum number of messages to receive, from 1 to 32: in each poll of the consumer, and for receiveMessages and peekMessages. The CamelAzureStorageQueueMaxMessages header replaces this option for the producer. | 1 | Integer |
camel.component.azure-storage-queue.message-id | The ID of the message that deleteMessage or updateMessage changes. The CamelAzureStorageQueueMessageId header, which the consumer and sendMessage set, replaces this option. | String | |
camel.component.azure-storage-queue.operation | The operation that the producer performs. The CamelAzureStorageQueueOperation header replaces this option. If neither is set, the producer performs sendMessage. | QueueOperationDefinition | |
camel.component.azure-storage-queue.pop-receipt | The pop receipt of the message that deleteMessage or updateMessage changes, which must be the latest pop receipt of that message. The CamelAzureStorageQueuePopReceipt header, which the consumer, sendMessage and updateMessage set to the pop receipt they get, replaces this option. | String | |
camel.component.azure-storage-queue.service-client | To use a custom com.azure.storage.queue.QueueServiceClient for the requests to the queue service. When this option is set or autowired, the client brings the address and the authentication, and the accountName, credentialType, accessKey and credentials options are not used to connect. The option is a com.azure.storage.queue.QueueServiceClient type. | QueueServiceClient | |
camel.component.azure-storage-queue.time-to-live | How long the message that sendMessage sends stays in the queue, for example P2D or 12h, in whole seconds. If not set, the queue service keeps it for 7 days, and PT-1S keeps it until it is deleted. The CamelAzureStorageQueueTimeToLive header replaces this option. | Duration | |
camel.component.azure-storage-queue.timeout | The time, for example PT10S or 10s, within which each request of the producer and the consumer to the queue service must complete, or it fails with an exception. If not set, only the timeouts of the HTTP client apply. The CamelAzureStorageQueueTimeout header replaces this option for the producer. | Duration | |
camel.component.azure-storage-queue.visibility-timeout | How long a message stays invisible in the queue, for example PT30S or 30s, in whole seconds and at most 7 days. sendMessage hides the message it sends for this long, or not at all if not set, and updateMessage, which requires it, hides the message for this long from the update. receiveMessages and the consumer hide each message they receive for this long, or 30 seconds if not set, and the consumer receives a message again after this time if its exchange failed. The CamelAzureStorageQueueVisibilityTimeout header replaces this option for the producer. | Duration |