Class AcquireInitialTokenRequestImpl
- java.lang.Object
-
- software.amazon.awssdk.retries.api.internal.AcquireInitialTokenRequestImpl
-
- All Implemented Interfaces:
AcquireInitialTokenRequest
@SdkInternalApi public final class AcquireInitialTokenRequestImpl extends Object implements AcquireInitialTokenRequest
Implementation of theAcquireInitialTokenRequestinterface.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AcquireInitialTokenRequestcreate(String scope)Creates a newAcquireInitialTokenRequestImplinstance with the given scope.Stringscope()An abstract scope for the attempts about to be executed.
-
-
-
Method Detail
-
scope
public String scope()
Description copied from interface:AcquireInitialTokenRequestAn abstract scope for the attempts about to be executed.A scope should be a unique string describing the smallest possible scope of failure for the attempts about to be executed. In practical terms, this is a key for the token bucket used to throttle request attempts. All attempts with the same scope share the same token bucket within the same
RetryStrategy, ensuring that token-bucket throttling for requests against one resource do not result in throttling for requests against other, unrelated resources.- Specified by:
scopein interfaceAcquireInitialTokenRequest
-
create
public static AcquireInitialTokenRequest create(String scope)
Creates a newAcquireInitialTokenRequestImplinstance with the given scope.
-
-