@NotThreadSafe public static interface TokenBucketExceptionCostFunction.Builder
TokenBucketExceptionCostFunction.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.
|
TokenBucketExceptionCostFunction.Builder throttlingExceptionCost(int cost)
TokenBucketExceptionCostFunction.Builder defaultExceptionCost(int cost)
TokenBucketExceptionCostFunction build()
TokenBucketExceptionCostFunction
using the values configured on this builder.Copyright © 2023. All rights reserved.