Class RetryPolicyContext
- java.lang.Object
-
- software.amazon.awssdk.core.retry.RetryPolicyContext
-
- All Implemented Interfaces:
ToCopyableBuilder<RetryPolicyContext.Builder,RetryPolicyContext>
@Immutable public final class RetryPolicyContext extends Object implements ToCopyableBuilder<RetryPolicyContext.Builder,RetryPolicyContext>
Contains useful information about a failed request that can be used to make retry and backoff decisions. SeeRetryPolicy
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RetryPolicyContext.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RetryPolicyContext.Builder
builder()
SdkException
exception()
ExecutionAttributes
executionAttributes()
Integer
httpStatusCode()
SdkRequest
originalRequest()
SdkHttpFullRequest
request()
int
retriesAttempted()
RetryPolicyContext.Builder
toBuilder()
int
totalRequests()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
builder
public static RetryPolicyContext.Builder builder()
-
originalRequest
public SdkRequest originalRequest()
- Returns:
- The original request passed to the client method for an operation.
-
request
public SdkHttpFullRequest request()
- Returns:
- The marshalled request.
-
exception
public SdkException exception()
- Returns:
- The last seen exception for the request.
-
executionAttributes
public ExecutionAttributes executionAttributes()
- Returns:
- Mutable execution context.
-
retriesAttempted
public int retriesAttempted()
- Returns:
- Number of retries attempted thus far.
-
totalRequests
public int totalRequests()
- Returns:
- The total number of requests made thus far.
-
httpStatusCode
public Integer httpStatusCode()
- Returns:
- HTTP status code of response. May be null if no response was received from the service.
-
toBuilder
public RetryPolicyContext.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<RetryPolicyContext.Builder,RetryPolicyContext>
-
-