Package | Description |
---|---|
com.amazonaws.http | |
com.amazonaws.protocol.json | |
com.amazonaws.retry | |
com.amazonaws.waiters |
Modifier and Type | Method and Description |
---|---|
AmazonServiceException |
DefaultErrorResponseHandler.handle(HttpResponse errorResponse) |
AmazonServiceException |
JsonErrorResponseHandler.handle(HttpResponse response) |
Modifier and Type | Method and Description |
---|---|
<T> Response<T> |
AmazonHttpClient.execute(Request<?> request,
HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler,
HttpResponseHandler<AmazonServiceException> errorResponseHandler,
ExecutionContext executionContext)
Executes the request and returns the result.
|
<T> Response<T> |
AmazonHttpClient.executeWithTimer(Request<?> request,
HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler,
HttpResponseHandler<AmazonServiceException> errorResponseHandler,
ExecutionContext executionContext)
Start and end client execution timer around the execution of the request.
|
Constructor and Description |
---|
DefaultErrorResponseHandler(List<com.amazonaws.transform.Unmarshaller<AmazonServiceException,Node>> unmarshallerList)
Constructs a new DefaultErrorResponseHandler that will handle error responses from Amazon
services using the specified list of unmarshallers.
|
Modifier and Type | Method and Description |
---|---|
HttpResponseHandler<AmazonServiceException> |
SdkJsonProtocolFactory.createErrorResponseHandler(JsonErrorResponseMetadata errorResponsMetadata)
Returns the error response handler for handling a error response.
|
Class<? extends AmazonServiceException> |
JsonClientMetadata.getBaseServiceExceptionClass() |
Class<? extends AmazonServiceException> |
JsonErrorShapeMetadata.getModeledClass() |
Modifier and Type | Method and Description |
---|---|
JsonClientMetadata |
JsonClientMetadata.withBaseServiceExceptionClass(Class<? extends AmazonServiceException> baseServiceExceptionClass) |
JsonErrorShapeMetadata |
JsonErrorShapeMetadata.withModeledClass(Class<? extends AmazonServiceException> modeledClass) |
Modifier and Type | Method and Description |
---|---|
static boolean |
RetryUtils.isClockSkewError(AmazonServiceException ase)
Returns true if the specified exception is a clock skew error.
|
static boolean |
RetryUtils.isRequestEntityTooLargeException(AmazonServiceException ase)
Returns true if the specified exception is a request entity too large error.
|
static boolean |
RetryUtils.isRetryableServiceException(AmazonServiceException ase)
Returns true if the specified exception is a retryable service side exception.
|
static boolean |
RetryUtils.isThrottlingException(AmazonServiceException ase)
Returns true if the specified exception is a throttling error.
|
Modifier and Type | Method and Description |
---|---|
boolean |
HttpFailureStatusAcceptor.matches(AmazonServiceException ase) |
boolean |
WaiterAcceptor.matches(AmazonServiceException output)
Default method definition that matches the exception
with the expected state defined by the acceptor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
WaiterExecution.pollResource()
Polls until a specified resource transitions into either success or failure state or
until the specified number of retries has been made.
|
void |
WaiterImpl.run(WaiterParameters<Input> waiterParameters)
Polls synchronously until it is determined that the resource
transitioned into the desired state or not.
|
void |
Waiter.run(WaiterParameters<Input> waiterParameters)
Polls synchronously until it is determined that the resource
transitioned into the desired state or not.
|
Future<Void> |
WaiterImpl.runAsync(WaiterParameters<Input> waiterParameters,
WaiterHandler callback)
Polls asynchronously until it is determined that the resource
transitioned into the desired state or not.
|
Future<Void> |
Waiter.runAsync(WaiterParameters<Input> waiterParameters,
WaiterHandler callback)
Polls asynchronously until it is determined that the resource
transitioned into the desired state or not.
|
Copyright © 2016. All rights reserved.