public class DelayParameters extends Object
DelayOptimization.| Modifier and Type | Field and Description |
|---|---|
long |
maxUnsynchronizedTimeoutNanos |
long |
maxUnsynchronizedTokens |
| Constructor and Description |
|---|
DelayParameters(long maxUnsynchronizedTokens,
Duration maxTimeoutBetweenSynchronization)
Creates the new instance of
DelayParameters |
public final long maxUnsynchronizedTokens
public final long maxUnsynchronizedTimeoutNanos
public DelayParameters(long maxUnsynchronizedTokens,
Duration maxTimeoutBetweenSynchronization)
DelayParametersmaxUnsynchronizedTokens - threshold that describes how many tokens can be consumed locally without synchronization with external storage. Must be a positive number.maxTimeoutBetweenSynchronization - threshold that describes how long bucket proxy can act locally without synchronization with external storage. Must be a positive duration.Copyright © 2022. All rights reserved.