QueueServiceClient Class
Definition
This class provides a client that 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.
Instantiating an Synchronous Queue Service Client
QueueServiceClient client = new QueueServiceClientBuilder()
.connectionString("connectionstring")
.endpoint("endpoint")
.buildClient();
View QueueServiceClientBuilder for additional ways to construct the client.
public final class QueueServiceClient
- Inheritance
-
java.lang.ObjectQueueServiceClient
Inherited Members
Methods
| createQueue(String queueName) |
Creates a queue in the storage account with the specified name and returns a QueueClient to interact with it. Code Samples Create the queue "test"
|
| createQueueWithResponse(String queueName, Map<String,String> metadata, Duration timeout, Context context) |
Creates a queue in the storage account with the specified name and metadata and returns a QueueClient to interact with it. Code Samples Create the queue "test" with metadata "queue:metadata"
|
| deleteQueue(String queueName) |
Deletes a queue in the storage account Code Samples Delete the queue "test"
|
| deleteQueueWithResponse(String queueName, Duration timeout, Context context) |
Deletes a queue in the storage account Code Samples Delete the queue "test"
|
| generateAccountSas(AccountSasSignatureValues accountSasSignatureValues) |
Generates an account SAS for the Azure Storage account using the specified AccountSasSignatureValues. Note : The client must be authenticated via StorageSharedKeyCredential See AccountSasSignatureValues for more information on how to construct an account SAS. Generating an account SAS The snippet below generates an AccountSasSignatureValues object that lasts for two days and gives the user read and list access to queue and file shares.
|
| generateAccountSas(AccountSasSignatureValues accountSasSignatureValues, Context context) |
Generates an account SAS for the Azure Storage account using the specified AccountSasSignatureValues. Note : The client must be authenticated via StorageSharedKeyCredential See AccountSasSignatureValues for more information on how to construct an account SAS. Generating an account SAS The snippet below generates an AccountSasSignatureValues object that lasts for two days and gives the user read and list access to queue and file shares.
|
| getAccountName() |
Get associated account name. |
| getHttpPipeline() |
Gets the HttpPipeline powering this client. |
| getMessageEncoding() |
Gets the message encoding the client is using. |
| getProperties() |
Retrieves the properties of the storage account's Queue service. The properties range from storage analytics and metric to CORS (Cross-Origin Resource Sharing). Code Samples Retrieve Queue service properties
For more information, see the Azure Docs. |
| getPropertiesWithResponse(Duration timeout, Context context) |
Retrieves the properties of the storage account's Queue service. The properties range from storage analytics and metric to CORS (Cross-Origin Resource Sharing). Code Samples Retrieve Queue service properties
For more information, see the Azure Docs. |
| getQueueClient(String queueName) |
Constructs a QueueClient that interacts with the specified queue. This will not create the queue in the storage account if it doesn't exist. |
| getQueueServiceUrl() | |
| getServiceVersion() |
Gets the service version the client is using. |
| getStatistics() |
Retrieves the geo replication information about the Queue service. Code Samples Retrieve the geo replication information
For more information, see the Azure Docs. |
| getStatisticsWithResponse(Duration timeout, Context context) |
Retrieves the geo replication information about the Queue service. Code Samples Retrieve the geo replication information
For more information, see the Azure Docs. |
| listQueues() |
Lists all queues in the storage account without their metadata. Code Samples List all queues in the account
For more information, see the Azure Docs. |
| listQueues(QueuesSegmentOptions options, Duration timeout, Context context) |
Lists the queues in the storage account that pass the filter. Pass true to setIncludeMetadata(boolean includeMetadata) to have metadata returned for the queues. Code Samples List all queues that begin with "azure"
For more information, see the Azure Docs. |
| setProperties(QueueServiceProperties properties) |
Sets the properties for the storage account's Queue service. The properties range from storage analytics and metric to CORS (Cross-Origin Resource Sharing). To maintain the CORS in the Queue service pass a Code Sample Clear CORS in the Queue service
Enable Minute and Hour Metrics
For more information, see the Azure Docs. |
| setPropertiesWithResponse(QueueServiceProperties properties, Duration timeout, Context context) |
Sets the properties for the storage account's Queue service. The properties range from storage analytics and metric to CORS (Cross-Origin Resource Sharing). To maintain the CORS in the Queue service pass a Code Sample Clear CORS in the Queue service
Enable Minute and Hour Metrics
For more information, see the Azure Docs. |