Class RefreshRetryTokenRequestImpl
java.lang.Object
software.amazon.awssdk.retries.api.internal.RefreshRetryTokenRequestImpl
- All Implemented Interfaces:
RefreshRetryTokenRequest,ToCopyableBuilder<RefreshRetryTokenRequest.Builder,RefreshRetryTokenRequest>
@SdkInternalApi
public final class RefreshRetryTokenRequestImpl
extends Object
implements RefreshRetryTokenRequest
Implementation of the
RefreshRetryTokenRequest interface.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns a new builder to create a new instance ofRefreshRetryTokenRequestfailure()The cause of the last attempt failure.booleanWhether the operation that is being retried is a long polling operation.A suggestion of how long to wait from the last attempt failure.token()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
token
Description copied from interface:RefreshRetryTokenRequestARetryTokenacquired a previousRetryStrategy.acquireInitialToken(software.amazon.awssdk.retries.api.AcquireInitialTokenRequest)orRetryStrategy.refreshRetryToken(software.amazon.awssdk.retries.api.RefreshRetryTokenRequest)call.- Specified by:
tokenin interfaceRefreshRetryTokenRequest
-
suggestedDelay
Description copied from interface:RefreshRetryTokenRequestA suggestion of how long to wait from the last attempt failure. For HTTP calls, this is usually extracted from a "retry after" header from the downstream service.- Specified by:
suggestedDelayin interfaceRefreshRetryTokenRequest
-
isLongPolling
public boolean isLongPolling()Description copied from interface:RefreshRetryTokenRequestWhether the operation that is being retried is a long polling operation. Returnsfalseby default.- Specified by:
isLongPollingin interfaceRefreshRetryTokenRequest
-
failure
Description copied from interface:RefreshRetryTokenRequestThe cause of the last attempt failure.- Specified by:
failurein interfaceRefreshRetryTokenRequest
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<RefreshRetryTokenRequest.Builder,RefreshRetryTokenRequest>
-
builder
Returns a new builder to create a new instance ofRefreshRetryTokenRequest
-