Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.sqs
Interface AmazonSQSAsync

All Superinterfaces:
AmazonSQS
All Known Implementing Classes:
AmazonSQSAsyncClient, AmazonSQSBufferedAsyncClient

public interface AmazonSQSAsync
extends AmazonSQS

Interface for accessing AmazonSQS asynchronously. Each asynchronous method will return a Java Future object, and users are also allowed to provide a callback handler.


Method Summary
 java.util.concurrent.Future<java.lang.Void> addPermissionAsync(AddPermissionRequest addPermissionRequest)
           
 java.util.concurrent.Future<java.lang.Void> addPermissionAsync(AddPermissionRequest addPermissionRequest, AsyncHandler<AddPermissionRequest,java.lang.Void> asyncHandler)
           
 java.util.concurrent.Future<java.lang.Void> changeMessageVisibilityAsync(ChangeMessageVisibilityRequest changeMessageVisibilityRequest)
           
 java.util.concurrent.Future<java.lang.Void> changeMessageVisibilityAsync(ChangeMessageVisibilityRequest changeMessageVisibilityRequest, AsyncHandler<ChangeMessageVisibilityRequest,java.lang.Void> asyncHandler)
           
 java.util.concurrent.Future<ChangeMessageVisibilityBatchResult> changeMessageVisibilityBatchAsync(ChangeMessageVisibilityBatchRequest changeMessageVisibilityBatchRequest)
           
 java.util.concurrent.Future<ChangeMessageVisibilityBatchResult> changeMessageVisibilityBatchAsync(ChangeMessageVisibilityBatchRequest changeMessageVisibilityBatchRequest, AsyncHandler<ChangeMessageVisibilityBatchRequest,ChangeMessageVisibilityBatchResult> asyncHandler)
           
 java.util.concurrent.Future<CreateQueueResult> createQueueAsync(CreateQueueRequest createQueueRequest)
           
 java.util.concurrent.Future<CreateQueueResult> createQueueAsync(CreateQueueRequest createQueueRequest, AsyncHandler<CreateQueueRequest,CreateQueueResult> asyncHandler)
           
 java.util.concurrent.Future<java.lang.Void> deleteMessageAsync(DeleteMessageRequest deleteMessageRequest)
           
 java.util.concurrent.Future<java.lang.Void> deleteMessageAsync(DeleteMessageRequest deleteMessageRequest, AsyncHandler<DeleteMessageRequest,java.lang.Void> asyncHandler)
           
 java.util.concurrent.Future<DeleteMessageBatchResult> deleteMessageBatchAsync(DeleteMessageBatchRequest deleteMessageBatchRequest)
           
 java.util.concurrent.Future<DeleteMessageBatchResult> deleteMessageBatchAsync(DeleteMessageBatchRequest deleteMessageBatchRequest, AsyncHandler<DeleteMessageBatchRequest,DeleteMessageBatchResult> asyncHandler)
           
 java.util.concurrent.Future<java.lang.Void> deleteQueueAsync(DeleteQueueRequest deleteQueueRequest)
           
 java.util.concurrent.Future<java.lang.Void> deleteQueueAsync(DeleteQueueRequest deleteQueueRequest, AsyncHandler<DeleteQueueRequest,java.lang.Void> asyncHandler)
           
 java.util.concurrent.Future<GetQueueAttributesResult> getQueueAttributesAsync(GetQueueAttributesRequest getQueueAttributesRequest)
           
 java.util.concurrent.Future<GetQueueAttributesResult> getQueueAttributesAsync(GetQueueAttributesRequest getQueueAttributesRequest, AsyncHandler<GetQueueAttributesRequest,GetQueueAttributesResult> asyncHandler)
           
 java.util.concurrent.Future<GetQueueUrlResult> getQueueUrlAsync(GetQueueUrlRequest getQueueUrlRequest)
           
 java.util.concurrent.Future<GetQueueUrlResult> getQueueUrlAsync(GetQueueUrlRequest getQueueUrlRequest, AsyncHandler<GetQueueUrlRequest,GetQueueUrlResult> asyncHandler)
           
 java.util.concurrent.Future<ListQueuesResult> listQueuesAsync(ListQueuesRequest listQueuesRequest)
           
 java.util.concurrent.Future<ListQueuesResult> listQueuesAsync(ListQueuesRequest listQueuesRequest, AsyncHandler<ListQueuesRequest,ListQueuesResult> asyncHandler)
           
 java.util.concurrent.Future<ReceiveMessageResult> receiveMessageAsync(ReceiveMessageRequest receiveMessageRequest)
           
 java.util.concurrent.Future<ReceiveMessageResult> receiveMessageAsync(ReceiveMessageRequest receiveMessageRequest, AsyncHandler<ReceiveMessageRequest,ReceiveMessageResult> asyncHandler)
           
 java.util.concurrent.Future<java.lang.Void> removePermissionAsync(RemovePermissionRequest removePermissionRequest)
           
 java.util.concurrent.Future<java.lang.Void> removePermissionAsync(RemovePermissionRequest removePermissionRequest, AsyncHandler<RemovePermissionRequest,java.lang.Void> asyncHandler)
           
 java.util.concurrent.Future<SendMessageResult> sendMessageAsync(SendMessageRequest sendMessageRequest)
           
 java.util.concurrent.Future<SendMessageResult> sendMessageAsync(SendMessageRequest sendMessageRequest, AsyncHandler<SendMessageRequest,SendMessageResult> asyncHandler)
           
 java.util.concurrent.Future<SendMessageBatchResult> sendMessageBatchAsync(SendMessageBatchRequest sendMessageBatchRequest)
           
 java.util.concurrent.Future<SendMessageBatchResult> sendMessageBatchAsync(SendMessageBatchRequest sendMessageBatchRequest, AsyncHandler<SendMessageBatchRequest,SendMessageBatchResult> asyncHandler)
           
 java.util.concurrent.Future<java.lang.Void> setQueueAttributesAsync(SetQueueAttributesRequest setQueueAttributesRequest)
           
 java.util.concurrent.Future<java.lang.Void> setQueueAttributesAsync(SetQueueAttributesRequest setQueueAttributesRequest, AsyncHandler<SetQueueAttributesRequest,java.lang.Void> asyncHandler)
           
 
Methods inherited from interface com.amazonaws.services.sqs.AmazonSQS
addPermission, changeMessageVisibility, changeMessageVisibilityBatch, createQueue, deleteMessage, deleteMessageBatch, deleteQueue, getCachedResponseMetadata, getQueueAttributes, getQueueUrl, listQueues, listQueues, receiveMessage, removePermission, sendMessage, sendMessageBatch, setEndpoint, setQueueAttributes, setRegion, shutdown
 

Method Detail

setQueueAttributesAsync

java.util.concurrent.Future<java.lang.Void> setQueueAttributesAsync(SetQueueAttributesRequest setQueueAttributesRequest)
                                                                    throws AmazonServiceException,
                                                                           AmazonClientException
Parameters:
setQueueAttributesRequest - Container for the necessary parameters to execute the SetQueueAttributes operation on AmazonSQS.
Returns:
A Java Future object containing the response from the SetQueueAttributes service method, as returned by AmazonSQS.
Throws:
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.

setQueueAttributesAsync

java.util.concurrent.Future<java.lang.Void> setQueueAttributesAsync(SetQueueAttributesRequest setQueueAttributesRequest,
                                                                    AsyncHandler<SetQueueAttributesRequest,java.lang.Void> asyncHandler)
                                                                    throws AmazonServiceException,
                                                                           AmazonClientException
Parameters:
setQueueAttributesRequest - Container for the necessary parameters to execute the SetQueueAttributes operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the SetQueueAttributes service method, as returned by AmazonSQS.
Throws:
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.

changeMessageVisibilityBatchAsync

java.util.concurrent.Future<ChangeMessageVisibilityBatchResult> changeMessageVisibilityBatchAsync(ChangeMessageVisibilityBatchRequest changeMessageVisibilityBatchRequest)
                                                                                                  throws AmazonServiceException,
                                                                                                         AmazonClientException
Parameters:
changeMessageVisibilityBatchRequest - Container for the necessary parameters to execute the ChangeMessageVisibilityBatch operation on AmazonSQS.
Returns:
A Java Future object containing the response from the ChangeMessageVisibilityBatch service method, as returned by AmazonSQS.
Throws:
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.

changeMessageVisibilityBatchAsync

java.util.concurrent.Future<ChangeMessageVisibilityBatchResult> changeMessageVisibilityBatchAsync(ChangeMessageVisibilityBatchRequest changeMessageVisibilityBatchRequest,
                                                                                                  AsyncHandler<ChangeMessageVisibilityBatchRequest,ChangeMessageVisibilityBatchResult> asyncHandler)
                                                                                                  throws AmazonServiceException,
                                                                                                         AmazonClientException
Parameters:
changeMessageVisibilityBatchRequest - Container for the necessary parameters to execute the ChangeMessageVisibilityBatch operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ChangeMessageVisibilityBatch service method, as returned by AmazonSQS.
Throws:
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.

changeMessageVisibilityAsync

java.util.concurrent.Future<java.lang.Void> changeMessageVisibilityAsync(ChangeMessageVisibilityRequest changeMessageVisibilityRequest)
                                                                         throws AmazonServiceException,
                                                                                AmazonClientException
Parameters:
changeMessageVisibilityRequest - Container for the necessary parameters to execute the ChangeMessageVisibility operation on AmazonSQS.
Returns:
A Java Future object containing the response from the ChangeMessageVisibility service method, as returned by AmazonSQS.
Throws:
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.

changeMessageVisibilityAsync

java.util.concurrent.Future<java.lang.Void> changeMessageVisibilityAsync(ChangeMessageVisibilityRequest changeMessageVisibilityRequest,
                                                                         AsyncHandler<ChangeMessageVisibilityRequest,java.lang.Void> asyncHandler)
                                                                         throws AmazonServiceException,
                                                                                AmazonClientException
Parameters:
changeMessageVisibilityRequest - Container for the necessary parameters to execute the ChangeMessageVisibility operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ChangeMessageVisibility service method, as returned by AmazonSQS.
Throws:
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.

getQueueUrlAsync

java.util.concurrent.Future<GetQueueUrlResult> getQueueUrlAsync(GetQueueUrlRequest getQueueUrlRequest)
                                                                throws AmazonServiceException,
                                                                       AmazonClientException
Parameters:
getQueueUrlRequest - Container for the necessary parameters to execute the GetQueueUrl operation on AmazonSQS.
Returns:
A Java Future object containing the response from the GetQueueUrl service method, as returned by AmazonSQS.
Throws:
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.

getQueueUrlAsync

java.util.concurrent.Future<GetQueueUrlResult> getQueueUrlAsync(GetQueueUrlRequest getQueueUrlRequest,
                                                                AsyncHandler<GetQueueUrlRequest,GetQueueUrlResult> asyncHandler)
                                                                throws AmazonServiceException,
                                                                       AmazonClientException
Parameters:
getQueueUrlRequest - Container for the necessary parameters to execute the GetQueueUrl operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetQueueUrl service method, as returned by AmazonSQS.
Throws:
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.

removePermissionAsync

java.util.concurrent.Future<java.lang.Void> removePermissionAsync(RemovePermissionRequest removePermissionRequest)
                                                                  throws AmazonServiceException,
                                                                         AmazonClientException
Parameters:
removePermissionRequest - Container for the necessary parameters to execute the RemovePermission operation on AmazonSQS.
Returns:
A Java Future object containing the response from the RemovePermission service method, as returned by AmazonSQS.
Throws:
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.

removePermissionAsync

java.util.concurrent.Future<java.lang.Void> removePermissionAsync(RemovePermissionRequest removePermissionRequest,
                                                                  AsyncHandler<RemovePermissionRequest,java.lang.Void> asyncHandler)
                                                                  throws AmazonServiceException,
                                                                         AmazonClientException
Parameters:
removePermissionRequest - Container for the necessary parameters to execute the RemovePermission operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RemovePermission service method, as returned by AmazonSQS.
Throws:
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.

getQueueAttributesAsync

java.util.concurrent.Future<GetQueueAttributesResult> getQueueAttributesAsync(GetQueueAttributesRequest getQueueAttributesRequest)
                                                                              throws AmazonServiceException,
                                                                                     AmazonClientException
Parameters:
getQueueAttributesRequest - Container for the necessary parameters to execute the GetQueueAttributes operation on AmazonSQS.
Returns:
A Java Future object containing the response from the GetQueueAttributes service method, as returned by AmazonSQS.
Throws:
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.

getQueueAttributesAsync

java.util.concurrent.Future<GetQueueAttributesResult> getQueueAttributesAsync(GetQueueAttributesRequest getQueueAttributesRequest,
                                                                              AsyncHandler<GetQueueAttributesRequest,GetQueueAttributesResult> asyncHandler)
                                                                              throws AmazonServiceException,
                                                                                     AmazonClientException
Parameters:
getQueueAttributesRequest - Container for the necessary parameters to execute the GetQueueAttributes operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetQueueAttributes service method, as returned by AmazonSQS.
Throws:
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.

sendMessageBatchAsync

java.util.concurrent.Future<SendMessageBatchResult> sendMessageBatchAsync(SendMessageBatchRequest sendMessageBatchRequest)
                                                                          throws AmazonServiceException,
                                                                                 AmazonClientException
Parameters:
sendMessageBatchRequest - Container for the necessary parameters to execute the SendMessageBatch operation on AmazonSQS.
Returns:
A Java Future object containing the response from the SendMessageBatch service method, as returned by AmazonSQS.
Throws:
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.

sendMessageBatchAsync

java.util.concurrent.Future<SendMessageBatchResult> sendMessageBatchAsync(SendMessageBatchRequest sendMessageBatchRequest,
                                                                          AsyncHandler<SendMessageBatchRequest,SendMessageBatchResult> asyncHandler)
                                                                          throws AmazonServiceException,
                                                                                 AmazonClientException
Parameters:
sendMessageBatchRequest - Container for the necessary parameters to execute the SendMessageBatch operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the SendMessageBatch service method, as returned by AmazonSQS.
Throws:
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.

deleteQueueAsync

java.util.concurrent.Future<java.lang.Void> deleteQueueAsync(DeleteQueueRequest deleteQueueRequest)
                                                             throws AmazonServiceException,
                                                                    AmazonClientException
Parameters:
deleteQueueRequest - Container for the necessary parameters to execute the DeleteQueue operation on AmazonSQS.
Returns:
A Java Future object containing the response from the DeleteQueue service method, as returned by AmazonSQS.
Throws:
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.

deleteQueueAsync

java.util.concurrent.Future<java.lang.Void> deleteQueueAsync(DeleteQueueRequest deleteQueueRequest,
                                                             AsyncHandler<DeleteQueueRequest,java.lang.Void> asyncHandler)
                                                             throws AmazonServiceException,
                                                                    AmazonClientException
Parameters:
deleteQueueRequest - Container for the necessary parameters to execute the DeleteQueue operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteQueue service method, as returned by AmazonSQS.
Throws:
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.

sendMessageAsync

java.util.concurrent.Future<SendMessageResult> sendMessageAsync(SendMessageRequest sendMessageRequest)
                                                                throws AmazonServiceException,
                                                                       AmazonClientException
Parameters:
sendMessageRequest - Container for the necessary parameters to execute the SendMessage operation on AmazonSQS.
Returns:
A Java Future object containing the response from the SendMessage service method, as returned by AmazonSQS.
Throws:
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.

sendMessageAsync

java.util.concurrent.Future<SendMessageResult> sendMessageAsync(SendMessageRequest sendMessageRequest,
                                                                AsyncHandler<SendMessageRequest,SendMessageResult> asyncHandler)
                                                                throws AmazonServiceException,
                                                                       AmazonClientException
Parameters:
sendMessageRequest - Container for the necessary parameters to execute the SendMessage operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the SendMessage service method, as returned by AmazonSQS.
Throws:
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.

receiveMessageAsync

java.util.concurrent.Future<ReceiveMessageResult> receiveMessageAsync(ReceiveMessageRequest receiveMessageRequest)
                                                                      throws AmazonServiceException,
                                                                             AmazonClientException
Parameters:
receiveMessageRequest - Container for the necessary parameters to execute the ReceiveMessage operation on AmazonSQS.
Returns:
A Java Future object containing the response from the ReceiveMessage service method, as returned by AmazonSQS.
Throws:
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.

receiveMessageAsync

java.util.concurrent.Future<ReceiveMessageResult> receiveMessageAsync(ReceiveMessageRequest receiveMessageRequest,
                                                                      AsyncHandler<ReceiveMessageRequest,ReceiveMessageResult> asyncHandler)
                                                                      throws AmazonServiceException,
                                                                             AmazonClientException
Parameters:
receiveMessageRequest - Container for the necessary parameters to execute the ReceiveMessage operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ReceiveMessage service method, as returned by AmazonSQS.
Throws:
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.

listQueuesAsync

java.util.concurrent.Future<ListQueuesResult> listQueuesAsync(ListQueuesRequest listQueuesRequest)
                                                              throws AmazonServiceException,
                                                                     AmazonClientException
Parameters:
listQueuesRequest - Container for the necessary parameters to execute the ListQueues operation on AmazonSQS.
Returns:
A Java Future object containing the response from the ListQueues service method, as returned by AmazonSQS.
Throws:
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.

listQueuesAsync

java.util.concurrent.Future<ListQueuesResult> listQueuesAsync(ListQueuesRequest listQueuesRequest,
                                                              AsyncHandler<ListQueuesRequest,ListQueuesResult> asyncHandler)
                                                              throws AmazonServiceException,
                                                                     AmazonClientException
Parameters:
listQueuesRequest - Container for the necessary parameters to execute the ListQueues operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListQueues service method, as returned by AmazonSQS.
Throws:
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.

deleteMessageBatchAsync

java.util.concurrent.Future<DeleteMessageBatchResult> deleteMessageBatchAsync(DeleteMessageBatchRequest deleteMessageBatchRequest)
                                                                              throws AmazonServiceException,
                                                                                     AmazonClientException
Parameters:
deleteMessageBatchRequest - Container for the necessary parameters to execute the DeleteMessageBatch operation on AmazonSQS.
Returns:
A Java Future object containing the response from the DeleteMessageBatch service method, as returned by AmazonSQS.
Throws:
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.

deleteMessageBatchAsync

java.util.concurrent.Future<DeleteMessageBatchResult> deleteMessageBatchAsync(DeleteMessageBatchRequest deleteMessageBatchRequest,
                                                                              AsyncHandler<DeleteMessageBatchRequest,DeleteMessageBatchResult> asyncHandler)
                                                                              throws AmazonServiceException,
                                                                                     AmazonClientException
Parameters:
deleteMessageBatchRequest - Container for the necessary parameters to execute the DeleteMessageBatch operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteMessageBatch service method, as returned by AmazonSQS.
Throws:
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.

createQueueAsync

java.util.concurrent.Future<CreateQueueResult> createQueueAsync(CreateQueueRequest createQueueRequest)
                                                                throws AmazonServiceException,
                                                                       AmazonClientException
Parameters:
createQueueRequest - Container for the necessary parameters to execute the CreateQueue operation on AmazonSQS.
Returns:
A Java Future object containing the response from the CreateQueue service method, as returned by AmazonSQS.
Throws:
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.

createQueueAsync

java.util.concurrent.Future<CreateQueueResult> createQueueAsync(CreateQueueRequest createQueueRequest,
                                                                AsyncHandler<CreateQueueRequest,CreateQueueResult> asyncHandler)
                                                                throws AmazonServiceException,
                                                                       AmazonClientException
Parameters:
createQueueRequest - Container for the necessary parameters to execute the CreateQueue operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateQueue service method, as returned by AmazonSQS.
Throws:
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.

addPermissionAsync

java.util.concurrent.Future<java.lang.Void> addPermissionAsync(AddPermissionRequest addPermissionRequest)
                                                               throws AmazonServiceException,
                                                                      AmazonClientException
Parameters:
addPermissionRequest - Container for the necessary parameters to execute the AddPermission operation on AmazonSQS.
Returns:
A Java Future object containing the response from the AddPermission service method, as returned by AmazonSQS.
Throws:
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.

addPermissionAsync

java.util.concurrent.Future<java.lang.Void> addPermissionAsync(AddPermissionRequest addPermissionRequest,
                                                               AsyncHandler<AddPermissionRequest,java.lang.Void> asyncHandler)
                                                               throws AmazonServiceException,
                                                                      AmazonClientException
Parameters:
addPermissionRequest - Container for the necessary parameters to execute the AddPermission operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the AddPermission service method, as returned by AmazonSQS.
Throws:
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.

deleteMessageAsync

java.util.concurrent.Future<java.lang.Void> deleteMessageAsync(DeleteMessageRequest deleteMessageRequest)
                                                               throws AmazonServiceException,
                                                                      AmazonClientException
Parameters:
deleteMessageRequest - Container for the necessary parameters to execute the DeleteMessage operation on AmazonSQS.
Returns:
A Java Future object containing the response from the DeleteMessage service method, as returned by AmazonSQS.
Throws:
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.

deleteMessageAsync

java.util.concurrent.Future<java.lang.Void> deleteMessageAsync(DeleteMessageRequest deleteMessageRequest,
                                                               AsyncHandler<DeleteMessageRequest,java.lang.Void> asyncHandler)
                                                               throws AmazonServiceException,
                                                                      AmazonClientException
Parameters:
deleteMessageRequest - Container for the necessary parameters to execute the DeleteMessage operation on AmazonSQS.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteMessage service method, as returned by AmazonSQS.
Throws:
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.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.