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 theRefreshRetryTokenResponseinterface.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RefreshRetryTokenResponsecreate(RetryToken token, Duration delay)Creates a newRefreshRetryTokenResponsewith the given token and delay.Durationdelay()The amount of time to wait before performing the next attempt.RetryTokentoken()ARetryTokenacquired by this invocation, used in subsequentRetryStrategy.refreshRetryToken(software.amazon.awssdk.retries.api.RefreshRetryTokenRequest)orRetryStrategy.recordSuccess(software.amazon.awssdk.retries.api.RecordSuccessRequest)calls.
-
-
-
Method Detail
-
token
public RetryToken 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
public Duration delay()
Description copied from interface:RefreshRetryTokenResponseThe amount of time to wait before performing the next attempt.- Specified by:
delayin interfaceRefreshRetryTokenResponse
-
create
public static RefreshRetryTokenResponse create(RetryToken token, Duration delay)
Creates a newRefreshRetryTokenResponsewith the given token and delay.
-
-