public class ListQueuesOptions extends QueueServiceOptions
QueueContract.listQueues(ListQueuesOptions) requests. These options
include a server response timeout for the request, a prefix to match queue
names to return, a marker to specify where to resume a list queues query, the
maximum number of queues to return in a single response, and whether to
include queue metadata with the response.| Constructor and Description |
|---|
ListQueuesOptions() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMarker()
Gets a
String value that identifies the beginning of the list of
queues to be returned with a
listQueues request. |
int |
getMaxResults()
Gets the maximum number of queues to return with a
listQueues request. |
String |
getPrefix()
Gets the prefix
String used to match queue names to return in a
listQueues request. |
boolean |
isIncludeMetadata()
Gets a flag indicating whether to return metadata with a
listQueues request. |
ListQueuesOptions |
setIncludeMetadata(boolean includeMetadata)
Sets a flag indicating whether to return metadata with a
listQueues request. |
ListQueuesOptions |
setMarker(String marker)
Sets a
String marker value that identifies the beginning of the
list of queues to be returned with a
listQueues request. |
ListQueuesOptions |
setMaxResults(int maxResults)
Sets the maximum number of queues to return with a
listQueues request. |
ListQueuesOptions |
setPrefix(String prefix)
Sets the prefix
String to use to match queue names to return in a
listQueues request. |
ListQueuesOptions |
setTimeout(Integer timeout)
Sets the server request timeout value associated with this
ListQueuesOptions instance. |
getTimeoutpublic ListQueuesOptions setTimeout(Integer timeout)
ListQueuesOptions instance.
The timeout value only affects calls made on methods where this
ListQueuesOptions instance is passed as a parameter.
setTimeout in class QueueServiceOptionstimeout - The server request timeout value to set in milliseconds.ListQueuesOptions instance.public String getPrefix()
String used to match queue names to return in a
listQueues request.String used to match queue names to return in
a listQueues
request.public ListQueuesOptions setPrefix(String prefix)
String to use to match queue names to return in a
listQueues request.
The prefix value only affects calls made on methods where this
ListQueuesOptions instance is passed as a parameter.
prefix - The prefix String to use to match queue names to
return in a
listQueues
request.ListQueuesOptions instance.public String getMarker()
String value that identifies the beginning of the list of
queues to be returned with a
listQueues request.
The listQueues method
returns a NextMarker element within the response if the
list returned was not complete, which can be accessed with the
ListQueuesResult.getNextMarker() method. This opaque value may
then be set on a ListQueuesOptions instance with a call to
setMarker to be used in a
subsequent listQueues
call to request the next portion of the list of queues.
public ListQueuesOptions setMarker(String marker)
String marker value that identifies the beginning of the
list of queues to be returned with a
listQueues request.
The listQueues method
returns a NextMarker element within the response if the
list returned was not complete, which can be accessed with the
ListQueuesResult.getNextMarker() method. This opaque value may
then be set on a ListQueuesOptions instance with a call to
setMarker to be used in a
subsequent listQueues
call to request the next portion of the list of queues.
marker - The String marker value to set.ListQueuesOptions instance.public int getMaxResults()
listQueues request.
If the value is not specified, the server will return up to 5,000 items.public ListQueuesOptions setMaxResults(int maxResults)
listQueues request.
If the value is not specified, by default the server will return up to
5,000 items.
The maxResults value only affects calls made on methods where this
ListQueuesOptions instance is passed as a parameter.
maxResults - The maximum number of queues to return.ListQueuesOptions instance.public boolean isIncludeMetadata()
listQueues request.true to return metadata.public ListQueuesOptions setIncludeMetadata(boolean includeMetadata)
listQueues request.includeMetadata - true to return metadata.ListQueuesOptions instance./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/