Class AcquireInitialTokenResponseImpl
- java.lang.Object
-
- software.amazon.awssdk.retries.api.internal.AcquireInitialTokenResponseImpl
-
- All Implemented Interfaces:
AcquireInitialTokenResponse
public final class AcquireInitialTokenResponseImpl extends Object implements AcquireInitialTokenResponse
Implementation of theAcquireInitialTokenResponseinterface.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AcquireInitialTokenResponsecreate(RetryToken token, Duration delay)Creates a newAcquireInitialTokenResponseImplinstance with the given token and suggested delay values.Durationdelay()The amount of time to wait before performing the first 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:AcquireInitialTokenResponseARetryTokenacquired 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 interfaceAcquireInitialTokenResponse
-
delay
public Duration delay()
Description copied from interface:AcquireInitialTokenResponseThe amount of time to wait before performing the first attempt.- Specified by:
delayin interfaceAcquireInitialTokenResponse
-
create
public static AcquireInitialTokenResponse create(RetryToken token, Duration delay)
Creates a newAcquireInitialTokenResponseImplinstance with the given token and suggested delay values.
-
-