public static final class DefaultTokenBucketExceptionCostFunction.Builder extends Object implements TokenBucketExceptionCostFunction.Builder
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
TokenBucketExceptionCostFunction |
build()
Create a
TokenBucketExceptionCostFunction using the values configured on this builder. |
TokenBucketExceptionCostFunction.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.
|
TokenBucketExceptionCostFunction.Builder |
throttlingExceptionCost(int cost)
Specify the number of tokens that should be removed from the token bucket when throttling exceptions (e.g.
|
public TokenBucketExceptionCostFunction.Builder throttlingExceptionCost(int cost)
TokenBucketExceptionCostFunction.BuilderthrottlingExceptionCost in interface TokenBucketExceptionCostFunction.Builderpublic TokenBucketExceptionCostFunction.Builder defaultExceptionCost(int cost)
TokenBucketExceptionCostFunction.BuilderdefaultExceptionCost in interface TokenBucketExceptionCostFunction.Builderpublic TokenBucketExceptionCostFunction build()
TokenBucketExceptionCostFunction.BuilderTokenBucketExceptionCostFunction using the values configured on this builder.build in interface TokenBucketExceptionCostFunction.BuilderCopyright © 2022. All rights reserved.