Class QueueConfiguration
java.lang.Object
org.apache.camel.component.azure.storage.queue.QueueConfiguration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Access key for the associated azure account name to be used for authentication with azure queue servicesAzure account name to be used for authentication with azure queue servicescom.azure.storage.common.StorageSharedKeyCredentialStorageSharedKeyCredential can be injected to create the azure client, this holds the important authentication informationMaximum number of messages to get, if there are less messages exist in the queue than requested all the messages will be returned.The ID of the message to be deleted or updated.Queue service operation hint to the producerUnique identifier that must match for the message to be deleted or updated.The queue resource namecom.azure.storage.queue.QueueServiceClientService client to a storage account to interact with the queue service.An optional timeout applied to the operation.How long the message will stay alive in the queue.The timeout period for how long the message is invisible in the queue.booleanWhen is set to `true`, the queue will be automatically created when sending messages to the queue.voidsetAccessKey(String accessKey) voidsetAccountName(String accountName) voidsetCreateQueue(boolean createQueue) voidsetCredentials(com.azure.storage.common.StorageSharedKeyCredential credentials) voidsetCredentialType(CredentialType credentialType) Determines the credential strategy to adoptvoidsetMaxMessages(Integer maxMessages) voidsetMessageId(String messageId) voidsetOperation(QueueOperationDefinition operation) voidsetPopReceipt(String popReceipt) voidsetQueueName(String queueName) voidsetServiceClient(com.azure.storage.queue.QueueServiceClient serviceClient) voidsetTimeout(Duration timeout) voidsetTimeToLive(Duration timeToLive) voidsetVisibilityTimeout(Duration visibilityTimeout)
-
Constructor Details
-
QueueConfiguration
public QueueConfiguration()
-
-
Method Details
-
getAccountName
Azure account name to be used for authentication with azure queue services -
setAccountName
-
getCredentials
public com.azure.storage.common.StorageSharedKeyCredential getCredentials()StorageSharedKeyCredential can be injected to create the azure client, this holds the important authentication information -
getServiceClient
public com.azure.storage.queue.QueueServiceClient getServiceClient()Service client to a storage account to interact with the queue service. This client does not hold any state about a particular storage account but is instead a convenient way of sending off appropriate requests to the resource on the service. This client contains all the operations for interacting with a queue account in Azure Storage. Operations allowed by the client are creating, listing, and deleting queues, retrieving and updating properties of the account, and retrieving statistics of the account. -
setServiceClient
public void setServiceClient(com.azure.storage.queue.QueueServiceClient serviceClient) -
getQueueName
The queue resource name -
setQueueName
-
getAccessKey
Access key for the associated azure account name to be used for authentication with azure queue services -
setAccessKey
-
getTimeToLive
How long the message will stay alive in the queue. If unset the value will default to 7 days, if -1 is passed the message will not expire. The time to live must be -1 or any positive number. The format should be in this form: `PnDTnHnMn.nS.`, e.g: "PT20.345S" -- parses as "20.345 seconds", P2D" -- parses as "2 days" However, in case you are using EndpointDsl/ComponentDsl, you can do something like `Duration.ofSeconds()` since these Java APIs are typesafe. -
setTimeToLive
-
getVisibilityTimeout
The timeout period for how long the message is invisible in the queue. The timeout must be between 1 seconds and 7 days. The format should be in this form: `PnDTnHnMn.nS.`, e.g: "PT20.345S" -- parses as "20.345 seconds", P2D" -- parses as "2 days" However, in case you are using EndpointDsl/ComponentDsl, you can do something like `Duration.ofSeconds()` since these Java APIs are typesafe. -
setVisibilityTimeout
-
getOperation
Queue service operation hint to the producer -
setOperation
-
isCreateQueue
public boolean isCreateQueue()When is set to `true`, the queue will be automatically created when sending messages to the queue. -
setCreateQueue
public void setCreateQueue(boolean createQueue) -
getMaxMessages
Maximum number of messages to get, if there are less messages exist in the queue than requested all the messages will be returned. If left empty only 1 message will be retrieved, the allowed range is 1 to 32 messages. -
setMaxMessages
-
getTimeout
An optional timeout applied to the operation. If a response is not returned before the timeout concludes aRuntimeExceptionwill be thrown. -
setTimeout
-
getMessageId
The ID of the message to be deleted or updated. -
setMessageId
-
getPopReceipt
Unique identifier that must match for the message to be deleted or updated. -
setPopReceipt
-
getCredentialType
-
setCredentialType
Determines the credential strategy to adopt -
copy
-