CloudQueueClient Class
- java.
lang. Object - ServiceClient
- com.
microsoft. azure. storage. queue. CloudQueueClient
- com.
public class CloudQueueClient extends ServiceClient
Provides a service client for accessing the Microsoft Azure Queue service.
Constructor Summary
Constructor | Description |
---|---|
CloudQueueClient(final StorageUri baseUri, final StorageCredentials credentials) |
Initializes a new instance of the class using the specified Queue service endpoint and account credentials. |
CloudQueueClient(final URI baseUri, final StorageCredentials credentials) |
Initializes a new instance of the class using the specified Queue service endpoint and account credentials. |
Method Summary
Modifier and Type | Method and Description |
---|---|
final Service |
downloadServiceProperties()
Retrieves the current ServiceProperties for the given storage service. This includes Logging, HourMetrics, MinuteMetrics and CORS configurations. |
final Service |
downloadServiceProperties(QueueRequestOptions options, OperationContext opContext)
Retrieves the current ServiceProperties for the given storage service. This includes Logging, HourMetrics, MinuteMetrics and CORS configurations. |
Queue |
getDefaultRequestOptions()
Gets the QueueRequestOptions that is used for requests associated with this |
Cloud |
getQueueReference(final String queueName)
Gets a CloudQueue object with the specified name. |
Service |
getServiceStats()
Queries the service for the ServiceStats. |
Service |
getServiceStats(QueueRequestOptions options, OperationContext opContext)
Queries the service for the ServiceStats. |
boolean | isUsePathStyleUris() |
Iterable<Cloud |
listQueues()
Gets an iterable collection of queues for this queue service client. |
Iterable<Cloud |
listQueues(final String prefix)
Returns an iterable collection of queues whose names begin with the specified prefix in this Queue service client. |
Iterable<Cloud |
listQueues(final String prefix, final QueueListingDetails detailsIncluded, QueueRequestOptions options, OperationContext opContext)
Returns an iterable collection of queues whose names begin with the specified prefix for this Queue service client, using the specified details setting, request options, and operation context. |
Result |
listQueuesSegmented()
Gets a result segment of an iterable collection of queues for this Queue service client. |
Result |
listQueuesSegmented(final String prefix)
Gets a result segment of an iterable collection of queues whose names begin with the specified prefix for this Queue service client. |
Result |
listQueuesSegmented(final String prefix, final QueueListingDetails detailsIncluded, final Integer maxResults, final ResultContinuation continuationToken, QueueRequestOptions options, OperationContext opContext)
Gets a result segment of an iterable collection of queues whose names begin with the specified prefix for this queue, using the specified listing details options, request options, and operation context. |
void |
setDefaultRequestOptions(QueueRequestOptions defaultRequestOptions)
Sets the QueueRequestOptions that is used for any queue accessed with this object. |
void |
uploadServiceProperties(final ServiceProperties properties)
Uploads a new ServiceProperties configuration to the given storage service. This includes Logging, HourMetrics, MinuteMetrics and CORS configurations. |
void |
uploadServiceProperties(final ServiceProperties properties, QueueRequestOptions options, OperationContext opContext)
Uploads a new ServiceProperties configuration to the given storage service. This includes Logging, HourMetrics, MinuteMetrics and CORS configurations. |
Inherited Members
Constructor Details
CloudQueueClient
public CloudQueueClient(final StorageUri baseUri, final StorageCredentials credentials)
Initializes a new instance of the class using the specified Queue service endpoint and account credentials.
Parameters:
CloudQueueClient
public CloudQueueClient(final URI baseUri, final StorageCredentials credentials)
Initializes a new instance of the class using the specified Queue service endpoint and account credentials.
Parameters:
java.net.URI
object that represents the Queue service endpoint used to create the client.
Method Details
downloadServiceProperties
public final ServiceProperties downloadServiceProperties()
Retrieves the current ServiceProperties for the given storage service. This includes Logging, HourMetrics, MinuteMetrics and CORS configurations.
Returns:
Throws:
downloadServiceProperties
public final ServiceProperties downloadServiceProperties(QueueRequestOptions options, OperationContext opContext)
Retrieves the current ServiceProperties for the given storage service. This includes Logging, HourMetrics, MinuteMetrics and CORS configurations.
Parameters:
null
will use the default request options from the associated service client ( CloudQueueClient).
Returns:
Throws:
getDefaultRequestOptions
public QueueRequestOptions getDefaultRequestOptions()
Gets the QueueRequestOptions that is used for requests associated with this
Returns:
CloudQueueClient
getQueueReference
public CloudQueue getQueueReference(final String queueName)
Gets a CloudQueue object with the specified name.
Parameters:
Returns:
Throws:
getServiceStats
public ServiceStats getServiceStats()
Queries the service for the ServiceStats.
Returns:
ServiceStats for the given storage service
Throws:
getServiceStats
public ServiceStats getServiceStats(QueueRequestOptions options, OperationContext opContext)
Queries the service for the ServiceStats.
Parameters:
null
will use the default request options from the associated service client ( CloudQueueClient).
Returns:
ServiceStats for the given storage service
Throws:
isUsePathStyleUris
protected boolean isUsePathStyleUris()
Returns:
listQueues
public Iterable
Gets an iterable collection of queues for this queue service client.
Returns:
listQueues
public Iterable
Returns an iterable collection of queues whose names begin with the specified prefix in this Queue service client.
Parameters:
String
that represents the queue name prefix.
Returns:
listQueues
public Iterable
Returns an iterable collection of queues whose names begin with the specified prefix for this Queue service client, using the specified details setting, request options, and operation context.
Parameters:
String
that represents the queue name prefix.
null
will use the default request options from the associated service client ( CloudQueue).
Returns:
listQueuesSegmented
public ResultSegment
Gets a result segment of an iterable collection of queues for this Queue service client.
Returns:
Throws:
listQueuesSegmented
public ResultSegment
Gets a result segment of an iterable collection of queues whose names begin with the specified prefix for this Queue service client.
Parameters:
Returns:
Throws:
listQueuesSegmented
public ResultSegment
Gets a result segment of an iterable collection of queues whose names begin with the specified prefix for this queue, using the specified listing details options, request options, and operation context.
Parameters:
String
that represents the prefix of the queue name to match.
null
or greater than 5000, the server will return up to 5,000 items. Must be at least 1.
null
will use the default request options from the associated service client ( CloudQueue).
Returns:
Throws:
setDefaultRequestOptions
public void setDefaultRequestOptions(QueueRequestOptions defaultRequestOptions)
Sets the QueueRequestOptions that is used for any queue accessed with this object.
Parameters:
uploadServiceProperties
public void uploadServiceProperties(final ServiceProperties properties)
Uploads a new ServiceProperties configuration to the given storage service. This includes Logging, HourMetrics, MinuteMetrics and CORS configurations.
Parameters:
Throws:
uploadServiceProperties
public void uploadServiceProperties(final ServiceProperties properties, QueueRequestOptions options, OperationContext opContext)
Uploads a new ServiceProperties configuration to the given storage service. This includes Logging, HourMetrics, MinuteMetrics and CORS configurations.
Parameters:
null
will use the default request options from the associated service client ( CloudBlobClient).
Throws: