Class DefaultTokenBucketExceptionCostFunction.Builder
java.lang.Object
software.amazon.awssdk.core.internal.retry.DefaultTokenBucketExceptionCostFunction.Builder
- All Implemented Interfaces:
TokenBucketExceptionCostFunction.Builder
- Enclosing class:
DefaultTokenBucketExceptionCostFunction
public static final class DefaultTokenBucketExceptionCostFunction.Builder
extends Object
implements TokenBucketExceptionCostFunction.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create aTokenBucketExceptionCostFunctionusing the values configured on this builder.defaultExceptionCost(int cost) Specify the number of tokens that should be removed from the token bucket when no other exception type in this function is matched.throttlingExceptionCost(int cost) Specify the number of tokens that should be removed from the token bucket when throttling exceptions (e.g.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
throttlingExceptionCost
Description copied from interface:TokenBucketExceptionCostFunction.BuilderSpecify the number of tokens that should be removed from the token bucket when throttling exceptions (e.g. HTTP status code 429) are encountered.- Specified by:
throttlingExceptionCostin interfaceTokenBucketExceptionCostFunction.Builder
-
defaultExceptionCost
Description copied from interface:TokenBucketExceptionCostFunction.BuilderSpecify the number of tokens that should be removed from the token bucket when no other exception type in this function is matched. This field is required.- Specified by:
defaultExceptionCostin interfaceTokenBucketExceptionCostFunction.Builder
-
build
Description copied from interface:TokenBucketExceptionCostFunction.BuilderCreate aTokenBucketExceptionCostFunctionusing the values configured on this builder.- Specified by:
buildin interfaceTokenBucketExceptionCostFunction.Builder
-