|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QueueApi
Provides access to SQS via their REST API.
QueueAsyncApi| Method Summary | |
|---|---|
URI |
create(String queueName)
The CreateQueue action creates a new queue. |
URI |
create(String queueName,
CreateQueueOptions options)
same as #create(String, String) except you can
control options such as delay seconds. |
void |
delete(URI queue)
The DeleteQueue action deletes the queue specified by the queue URL, regardless of whether the queue is empty. |
String |
getAttribute(URI queue,
String attributeName)
returns an attribute of a queue. |
QueueAttributes |
getAttributes(URI queue)
returns all attributes of a queue. |
Map<String,String> |
getAttributes(URI queue,
Iterable<String> attributeNames)
returns some attributes of a queue. |
com.google.common.collect.FluentIterable<URI> |
list()
The ListQueues action returns a list of your queues. |
com.google.common.collect.FluentIterable<URI> |
list(ListQueuesOptions options)
|
void |
setAttribute(URI queue,
String name,
String value)
The SetQueueAttributes action sets one attribute of a queue per request. |
| Method Detail |
|---|
com.google.common.collect.FluentIterable<URI> list()
region - Queues are Region-specific.options - specify prefix or other optionscom.google.common.collect.FluentIterable<URI> list(ListQueuesOptions options)
URI create(String queueName)
region - Queues are Region-specific.queueName - The name to use for the queue created. Constraints: Maximum 80
characters; alphanumeric characters, hyphens (-), and
underscores (_) are allowed.
URI create(String queueName,
CreateQueueOptions options)
#create(String, String) except you can
control options such as delay seconds.
options - options such as delay seconds#create(String, String)void delete(URI queue)
queue - queue you want to deleteQueueAttributes getAttributes(URI queue)
queue - queue to get the attributes of
void setAttribute(URI queue,
String name,
String value)
queue - queue to set the attribute onname - The name of the attribute you want to set.
VisibilityTimeout - The length of time (in seconds) that a
message received from a queue will be invisible to other
receiving components when they ask to receive messages. For more
information about VisibilityTimeout, see Visibility Timeout in
the Amazon SQS Developer Guide.
Policy - The formal description of the permissions for a
resource. For more information about Policy, see Basic Policy
Structure in the Amazon SQS Developer Guide.
MaximumMessageSize - The limit of how many bytes a message can
contain before Amazon SQS rejects it.
MessageRetentionPeriod - The number of seconds Amazon SQS
retains a message.
DelaySeconds - The time in seconds that the delivery of all
messages in the queue will be delayed.value - The value of the attribute you want to set. To delete a queue's
access control policy, set the policy to "".
Constraints: Constraints are specific for each value.
VisibilityTimeout - An integer from 0 to 43200 (12 hours). The
default for this attribute is 30 seconds.
Policy - A valid form-url-encoded policy. For more information
about policy structure, see Basic Policy Structure in the Amazon
SQS Developer Guide. For more information about
form-url-encoding, see
http://www.w3.org/MarkUp/html-spec/html-spec_8.html#SEC8.2.1.
MaximumMessageSize - An integer from 1024 bytes (1 KiB) up to
65536 bytes (64 KiB). The default for this attribute is 65536
(64 KiB).
MessageRetentionPeriod - Integer representing seconds, from 60
(1 minute) to 1209600 (14 days). The default for this attribute
is 345600 (4 days).
DelaySeconds - An integer from 0 to 900 (15 minutes). The
default for this attribute is 0.
Map<String,String> getAttributes(URI queue,
Iterable<String> attributeNames)
queue - queue to get the attributes of
String getAttribute(URI queue,
String attributeName)
queue - queue to get the attributes of
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||