com.amazonaws.handlers
Interface AsyncHandler<REQUEST extends AmazonWebServiceRequest,RESULT>


public interface AsyncHandler<REQUEST extends AmazonWebServiceRequest,RESULT>

Callback interface for notification on web service requests executed with the asynchronous clients in the AWS SDK for Java.


Method Summary
 void onError(Exception exception)
          Invoked after an asynchronous request
 void onSuccess(REQUEST request, RESULT result)
          Invoked after an asynchronous request has completed successfully.
 

Method Detail

onError

void onError(Exception exception)
Invoked after an asynchronous request

Parameters:
exception -

onSuccess

void onSuccess(REQUEST request,
               RESULT result)
Invoked after an asynchronous request has completed successfully. Callers have access to the original request object and the returned response object.

Parameters:
request - The initial request created by the caller
result - The successful result of the executed operation.


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