Interface RefreshRetryTokenRequest
-
- All Superinterfaces:
ToCopyableBuilder<RefreshRetryTokenRequest.Builder,RefreshRetryTokenRequest>
- All Known Implementing Classes:
RefreshRetryTokenRequestImpl
@SdkPublicApi @ThreadSafe public interface RefreshRetryTokenRequest extends ToCopyableBuilder<RefreshRetryTokenRequest.Builder,RefreshRetryTokenRequest>
Request that the calling code makes to theRetryStrategyusingRetryStrategy.refreshRetryToken(RefreshRetryTokenRequest)to notify that the attempted execution failed and theRetryTokenneeds to be refreshed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRefreshRetryTokenRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static RefreshRetryTokenRequest.Builderbuilder()Returns a new builder to configure theRefreshRetryTokenRequestinstance.Throwablefailure()The cause of the last attempt failure.Optional<Duration>suggestedDelay()A suggestion of how long to wait from the last attempt failure.RetryTokentoken()-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy, toBuilder
-
-
-
-
Method Detail
-
token
RetryToken token()
-
suggestedDelay
Optional<Duration> suggestedDelay()
A 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.
-
failure
Throwable failure()
The cause of the last attempt failure.
-
builder
static RefreshRetryTokenRequest.Builder builder()
Returns a new builder to configure theRefreshRetryTokenRequestinstance.
-
-