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