Class RefreshRetryTokenResponseImpl
java.lang.Object
software.amazon.awssdk.retries.api.internal.RefreshRetryTokenResponseImpl
- All Implemented Interfaces:
RefreshRetryTokenResponse
@SdkInternalApi
public final class RefreshRetryTokenResponseImpl
extends Object
implements RefreshRetryTokenResponse
Implementation for the
RefreshRetryTokenResponse interface.-
Method Summary
Modifier and TypeMethodDescriptionstatic RefreshRetryTokenResponsecreate(RetryToken token, Duration delay) Creates a newRefreshRetryTokenResponsewith the given token and delay.delay()The amount of time to wait before performing the next attempt.token()ARetryTokenacquired by this invocation, used in subsequentRetryStrategy.refreshRetryToken(software.amazon.awssdk.retries.api.RefreshRetryTokenRequest)orRetryStrategy.recordSuccess(software.amazon.awssdk.retries.api.RecordSuccessRequest)calls.
-
Method Details
-
token
Description copied from interface:RefreshRetryTokenResponseARetryTokenacquired by this invocation, used in subsequentRetryStrategy.refreshRetryToken(software.amazon.awssdk.retries.api.RefreshRetryTokenRequest)orRetryStrategy.recordSuccess(software.amazon.awssdk.retries.api.RecordSuccessRequest)calls.- Specified by:
tokenin interfaceRefreshRetryTokenResponse
-
delay
Description copied from interface:RefreshRetryTokenResponseThe amount of time to wait before performing the next attempt.- Specified by:
delayin interfaceRefreshRetryTokenResponse
-
create
Creates a newRefreshRetryTokenResponsewith the given token and delay.
-