public final class CloudQueueClient extends ServiceClient
credentials
Constructor and Description |
---|
CloudQueueClient(StorageUri baseUri,
StorageCredentials credentials)
Initializes a new instance of the
CloudQueueClient class using the specified Queue service endpoint
and account credentials. |
CloudQueueClient(URI baseUri,
StorageCredentials credentials)
Initializes a new instance of the
CloudQueueClient class using the specified Queue service endpoint
and account credentials. |
Modifier and Type | Method and Description |
---|---|
ServiceProperties |
downloadServiceProperties()
Retrieves the current
ServiceProperties for the given storage service. |
ServiceProperties |
downloadServiceProperties(QueueRequestOptions options,
OperationContext opContext)
Retrieves the current
ServiceProperties for the given storage service. |
QueueRequestOptions |
getDefaultRequestOptions()
Gets the
QueueRequestOptions that is used for requests associated with this CloudQueueClient |
CloudQueue |
getQueueReference(String queueName)
Gets a
CloudQueue object with the specified name. |
ServiceStats |
getServiceStats()
Queries the service for the
ServiceStats . |
ServiceStats |
getServiceStats(QueueRequestOptions options,
OperationContext opContext)
Queries the service for the
ServiceStats . |
protected boolean |
isUsePathStyleUris() |
Iterable<CloudQueue> |
listQueues()
Gets an iterable collection of queues for this queue service client.
|
Iterable<CloudQueue> |
listQueues(String prefix)
Returns an iterable collection of queues whose names begin with the
specified prefix in this Queue service client.
|
Iterable<CloudQueue> |
listQueues(String prefix,
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.
|
ResultSegment<CloudQueue> |
listQueuesSegmented()
Gets a result segment of an iterable collection of queues for this Queue
service client.
|
ResultSegment<CloudQueue> |
listQueuesSegmented(String prefix)
Gets a result segment of an iterable collection of queues whose names
begin with the specified prefix for this Queue service client.
|
ResultSegment<CloudQueue> |
listQueuesSegmented(String prefix,
QueueListingDetails detailsIncluded,
Integer maxResults,
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 CloudQueueClient
object. |
void |
uploadServiceProperties(ServiceProperties properties)
Uploads a new
ServiceProperties configuration to the given storage service. |
void |
uploadServiceProperties(ServiceProperties properties,
QueueRequestOptions options,
OperationContext opContext)
Uploads a new
ServiceProperties configuration to the given storage service. |
downloadServicePropertiesImpl, getCredentials, getEndpoint, getServiceStatsImpl, getStorageUri, setCredentials, setStorageUri, uploadServicePropertiesImpl
public CloudQueueClient(URI baseUri, StorageCredentials credentials)
CloudQueueClient
class using the specified Queue service endpoint
and account credentials.baseUri
- A java.net.URI
object that represents the Queue service endpoint used to create the
client.credentials
- A StorageCredentials
object that represents the account credentials.public CloudQueueClient(StorageUri baseUri, StorageCredentials credentials)
CloudQueueClient
class using the specified Queue service endpoint
and account credentials.baseUri
- A StorageUri
object that represents the Queue service endpoint used to create the
client.credentials
- A StorageCredentials
object that represents the account credentials.public CloudQueue getQueueReference(String queueName) throws URISyntaxException, StorageException
CloudQueue
object with the specified name.queueName
- The name of the queue, which must adhere to queue naming rules. The queue name should not include any
path separator characters (/).
Queue names must be lowercase, between 3-63 characters long and must start with a letter or number.
Queue names may contain only letters, numbers, and the dash (-) character.CloudQueue
object.URISyntaxException
- If the resource URI constructed based on the queueName is invalid.StorageException
- If a storage service error occurred.@DoesServiceRequest public Iterable<CloudQueue> listQueues()
CloudQueue
objects retrieved lazily that
represent the queues in this client.@DoesServiceRequest public Iterable<CloudQueue> listQueues(String prefix)
prefix
- A String
that represents the queue name prefix.CloudQueue
objects retrieved lazily that
represent the queues in this client whose names begin with the
specified prefix.@DoesServiceRequest public Iterable<CloudQueue> listQueues(String prefix, QueueListingDetails detailsIncluded, QueueRequestOptions options, OperationContext opContext)
prefix
- A String
that represents the queue name prefix.detailsIncluded
- A QueueListingDetails
value that indicates whether
queue metadata will be returned.options
- A QueueRequestOptions
object that specifies any
additional options for the request. Specifying null
will use the default request options
from
the associated service client ( CloudQueue
).opContext
- An OperationContext
object that represents the context
for the current operation. This object is used to track
requests to the storage service, and to provide additional
runtime information about the operation.CloudQueue
objects retrieved lazily that
represents the specified queues for this client.@DoesServiceRequest public ResultSegment<CloudQueue> listQueuesSegmented() throws StorageException
ResultSegment
of CloudQueue
objects that
contains a segment of the iterable collection of CloudQueue
objects that represent the requested
queues in
the storage service.StorageException
- If a storage service error occurred during the operation.@DoesServiceRequest public ResultSegment<CloudQueue> listQueuesSegmented(String prefix) throws StorageException
ResultSegment
of CloudQueue
objects that
contains a segment of the iterable collection of CloudQueue
objects that represent the requested
queues in
the storage service.StorageException
- If a storage service error occurred during the operation.@DoesServiceRequest public ResultSegment<CloudQueue> listQueuesSegmented(String prefix, QueueListingDetails detailsIncluded, Integer maxResults, ResultContinuation continuationToken, QueueRequestOptions options, OperationContext opContext) throws StorageException
prefix
- A String
that represents the prefix of the queue
name to match.detailsIncluded
- A QueueListingDetails
value that indicates whether
queue metadata will be returned.maxResults
- The maximum number of results to retrieve. If null
or greater
than 5000, the server will return up to 5,000 items. Must be at least 1.continuationToken
- A ResultContinuation
object that represents a
continuation token returned by a previous listing operation.options
- A QueueRequestOptions
object that specifies any additional options for
the request. Specifying null
will use the default request options
from the associated service client ( CloudQueue
).opContext
- An OperationContext
object that represents the context
for the current operation. This object is used to track
requests to the storage service, and to provide additional
runtime information about the operation.ResultSegment
of CloudQueue
objects that contains a segment of
the iterable collection of CloudQueue
objects that represent the requested
queues in the storage service.StorageException
- If a storage service error occurred during the operation.@DoesServiceRequest public ServiceStats getServiceStats() throws StorageException
ServiceStats
.ServiceStats
for the given storage serviceStorageException
- If a storage service error occurred.@DoesServiceRequest public ServiceStats getServiceStats(QueueRequestOptions options, OperationContext opContext) throws StorageException
ServiceStats
.options
- A QueueRequestOptions
object that specifies any additional options for the request. Specifying
null
will use the default request options from the associated service client (
CloudQueueClient
).opContext
- An OperationContext
object that represents the context for the current operation. This object
is used to track requests to the storage service, and to provide additional runtime information about
the operation.ServiceStats
for the given storage serviceStorageException
- If a storage service error occurred.@DoesServiceRequest public final ServiceProperties downloadServiceProperties() throws StorageException
ServiceProperties
for the given storage service. This includes Logging,
HourMetrics, MinuteMetrics and CORS configurations.ServiceProperties
object representing the current configuration of the service.StorageException
- If a storage service error occurred.@DoesServiceRequest public final ServiceProperties downloadServiceProperties(QueueRequestOptions options, OperationContext opContext) throws StorageException
ServiceProperties
for the given storage service. This includes Logging,
HourMetrics, MinuteMetrics and CORS configurations.options
- A QueueRequestOptions
object that specifies any additional options for the request. Specifying
null
will use the default request options from the associated service client (
CloudQueueClient
).opContext
- An OperationContext
object that represents the context for the current operation. This object
is used to track requests to the storage service, and to provide additional runtime information about
the operation.ServiceProperties
object representing the current configuration of the service.StorageException
- If a storage service error occurred.@DoesServiceRequest public void uploadServiceProperties(ServiceProperties properties) throws StorageException
ServiceProperties
configuration to the given storage service. This includes Logging,
HourMetrics, MinuteMetrics and CORS configurations.properties
- The ServiceProperties
to upload.StorageException
- If a storage service error occurred.@DoesServiceRequest public void uploadServiceProperties(ServiceProperties properties, QueueRequestOptions options, OperationContext opContext) throws StorageException
ServiceProperties
configuration to the given storage service. This includes Logging,
HourMetrics, MinuteMetrics and CORS configurations.properties
- The ServiceProperties
to upload.options
- A BlobRequestOptions
object that specifies any additional options for the request. Specifying
null
will use the default request options from the associated service client (
CloudBlobClient
).opContext
- An OperationContext
object that represents the context for the current operation. This object
is used to track requests to the storage service, and to provide additional runtime information about
the operation.StorageException
- If a storage service error occurred.protected boolean isUsePathStyleUris()
isUsePathStyleUris
in class ServiceClient
public QueueRequestOptions getDefaultRequestOptions()
QueueRequestOptions
that is used for requests associated with this CloudQueueClient
getDefaultRequestOptions
in class ServiceClient
QueueRequestOptions
object containing the values used by this CloudQueueClient
public void setDefaultRequestOptions(QueueRequestOptions defaultRequestOptions)
QueueRequestOptions
that is used for any queue accessed with this CloudQueueClient
object.defaultRequestOptions
- The QueueRequestOptions to use.Copyright © 2019. All rights reserved.