|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AmazonSQS
Interface for accessing AmazonSQS.
Method Summary | |
---|---|
void |
addPermission(AddPermissionRequest addPermissionRequest)
|
void |
changeMessageVisibility(ChangeMessageVisibilityRequest changeMessageVisibilityRequest)
|
ChangeMessageVisibilityBatchResult |
changeMessageVisibilityBatch(ChangeMessageVisibilityBatchRequest changeMessageVisibilityBatchRequest)
|
CreateQueueResult |
createQueue(CreateQueueRequest createQueueRequest)
|
void |
deleteMessage(DeleteMessageRequest deleteMessageRequest)
|
DeleteMessageBatchResult |
deleteMessageBatch(DeleteMessageBatchRequest deleteMessageBatchRequest)
|
void |
deleteQueue(DeleteQueueRequest deleteQueueRequest)
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues where a service isn't acting as expected. |
GetQueueAttributesResult |
getQueueAttributes(GetQueueAttributesRequest getQueueAttributesRequest)
|
GetQueueUrlResult |
getQueueUrl(GetQueueUrlRequest getQueueUrlRequest)
|
ListQueuesResult |
listQueues()
|
ListQueuesResult |
listQueues(ListQueuesRequest listQueuesRequest)
|
ReceiveMessageResult |
receiveMessage(ReceiveMessageRequest receiveMessageRequest)
|
void |
removePermission(RemovePermissionRequest removePermissionRequest)
|
SendMessageResult |
sendMessage(SendMessageRequest sendMessageRequest)
|
SendMessageBatchResult |
sendMessageBatch(SendMessageBatchRequest sendMessageBatchRequest)
|
void |
setEndpoint(java.lang.String endpoint)
Overrides the default endpoint for this client ("sqs.us-east-1.amazonaws.com"). |
void |
setQueueAttributes(SetQueueAttributesRequest setQueueAttributesRequest)
|
void |
setRegion(Region region)
An alternative to setEndpoint(String) , sets the
regional endpoint for this client's service calls. |
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open. |
Method Detail |
---|
void setEndpoint(java.lang.String endpoint) throws java.lang.IllegalArgumentException
Callers can pass in just the endpoint (ex: "sqs.us-east-1.amazonaws.com") or a full
URL, including the protocol (ex: "sqs.us-east-1.amazonaws.com"). If the
protocol is not specified here, the default protocol from this client's
ClientConfiguration
will be used, which by default is HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
endpoint
- The endpoint (ex: "sqs.us-east-1.amazonaws.com") or a full URL,
including the protocol (ex: "sqs.us-east-1.amazonaws.com") of
the region specific AWS endpoint this client will communicate
with.
java.lang.IllegalArgumentException
- If any problems are detected with the specified endpoint.void setRegion(Region region) throws java.lang.IllegalArgumentException
setEndpoint(String)
, sets the
regional endpoint for this client's service calls. Callers can use this
method to control which AWS region they want to work with.
By default, all service endpoints in all regions use the https protocol.
To use http instead, specify it in the ClientConfiguration
supplied at construction.
This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
region
- The region this client will communicate with. See
Region.getRegion(com.amazonaws.regions.Regions)
for
accessing a given region.
java.lang.IllegalArgumentException
- If the given region is null, or if this service isn't
available in the given region. See
Region.isServiceSupported(String)
Region.getRegion(com.amazonaws.regions.Regions)
,
Region.createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)
void setQueueAttributes(SetQueueAttributesRequest setQueueAttributesRequest) throws AmazonServiceException, AmazonClientException
setQueueAttributesRequest
- Container for the necessary
parameters to execute the SetQueueAttributes service method on
AmazonSQS.
InvalidAttributeNameException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.ChangeMessageVisibilityBatchResult changeMessageVisibilityBatch(ChangeMessageVisibilityBatchRequest changeMessageVisibilityBatchRequest) throws AmazonServiceException, AmazonClientException
changeMessageVisibilityBatchRequest
- Container for the necessary
parameters to execute the ChangeMessageVisibilityBatch service method
on AmazonSQS.
BatchEntryIdsNotDistinctException
TooManyEntriesInBatchRequestException
InvalidBatchEntryIdException
EmptyBatchRequestException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.void changeMessageVisibility(ChangeMessageVisibilityRequest changeMessageVisibilityRequest) throws AmazonServiceException, AmazonClientException
changeMessageVisibilityRequest
- Container for the necessary
parameters to execute the ChangeMessageVisibility service method on
AmazonSQS.
ReceiptHandleIsInvalidException
MessageNotInflightException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.GetQueueUrlResult getQueueUrl(GetQueueUrlRequest getQueueUrlRequest) throws AmazonServiceException, AmazonClientException
getQueueUrlRequest
- Container for the necessary parameters to
execute the GetQueueUrl service method on AmazonSQS.
QueueDoesNotExistException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.void removePermission(RemovePermissionRequest removePermissionRequest) throws AmazonServiceException, AmazonClientException
removePermissionRequest
- Container for the necessary parameters
to execute the RemovePermission service method on AmazonSQS.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.GetQueueAttributesResult getQueueAttributes(GetQueueAttributesRequest getQueueAttributesRequest) throws AmazonServiceException, AmazonClientException
getQueueAttributesRequest
- Container for the necessary
parameters to execute the GetQueueAttributes service method on
AmazonSQS.
InvalidAttributeNameException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.SendMessageBatchResult sendMessageBatch(SendMessageBatchRequest sendMessageBatchRequest) throws AmazonServiceException, AmazonClientException
sendMessageBatchRequest
- Container for the necessary parameters
to execute the SendMessageBatch service method on AmazonSQS.
BatchEntryIdsNotDistinctException
TooManyEntriesInBatchRequestException
BatchRequestTooLongException
InvalidBatchEntryIdException
EmptyBatchRequestException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.void deleteQueue(DeleteQueueRequest deleteQueueRequest) throws AmazonServiceException, AmazonClientException
deleteQueueRequest
- Container for the necessary parameters to
execute the DeleteQueue service method on AmazonSQS.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.SendMessageResult sendMessage(SendMessageRequest sendMessageRequest) throws AmazonServiceException, AmazonClientException
sendMessageRequest
- Container for the necessary parameters to
execute the SendMessage service method on AmazonSQS.
InvalidMessageContentsException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.ReceiveMessageResult receiveMessage(ReceiveMessageRequest receiveMessageRequest) throws AmazonServiceException, AmazonClientException
receiveMessageRequest
- Container for the necessary parameters to
execute the ReceiveMessage service method on AmazonSQS.
OverLimitException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.ListQueuesResult listQueues(ListQueuesRequest listQueuesRequest) throws AmazonServiceException, AmazonClientException
listQueuesRequest
- Container for the necessary parameters to
execute the ListQueues service method on AmazonSQS.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.DeleteMessageBatchResult deleteMessageBatch(DeleteMessageBatchRequest deleteMessageBatchRequest) throws AmazonServiceException, AmazonClientException
deleteMessageBatchRequest
- Container for the necessary
parameters to execute the DeleteMessageBatch service method on
AmazonSQS.
BatchEntryIdsNotDistinctException
TooManyEntriesInBatchRequestException
InvalidBatchEntryIdException
EmptyBatchRequestException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.CreateQueueResult createQueue(CreateQueueRequest createQueueRequest) throws AmazonServiceException, AmazonClientException
createQueueRequest
- Container for the necessary parameters to
execute the CreateQueue service method on AmazonSQS.
QueueNameExistsException
QueueDeletedRecentlyException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.void addPermission(AddPermissionRequest addPermissionRequest) throws AmazonServiceException, AmazonClientException
addPermissionRequest
- Container for the necessary parameters to
execute the AddPermission service method on AmazonSQS.
OverLimitException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.void deleteMessage(DeleteMessageRequest deleteMessageRequest) throws AmazonServiceException, AmazonClientException
deleteMessageRequest
- Container for the necessary parameters to
execute the DeleteMessage service method on AmazonSQS.
ReceiptHandleIsInvalidException
InvalidIdFormatException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.ListQueuesResult listQueues() throws AmazonServiceException, AmazonClientException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonSQS indicating
either a problem with the data in the request, or a server side issue.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |