Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onError(Exception exception)
Invoked after an asynchronous requestvoid
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 callerresult
- The successful result of the executed operation.
-
-