Interface AcquireInitialTokenRequest
- All Known Implementing Classes:
AcquireInitialTokenRequestImpl
Encapsulates the abstract scope to start the attempts about to be executed using a retry strategy.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AcquireInitialTokenRequestCreates a newAcquireInitialTokenRequestinstance with the given scope.scope()An abstract scope for the attempts about to be executed.
-
Method Details
-
scope
String scope()An 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. -
create
Creates a newAcquireInitialTokenRequestinstance with the given scope.
-