public class ThrottlingState extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AtomicInteger |
currentIndex |
protected LoadEstimator |
loadEstimator |
protected Instant[] |
timestamps
This array holds the timestamps when requests have reached the system; in
case the timestamp has already expired, Instant.EPOCH is stored.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ThrottlingState(Clock clock,
LoadEstimator le) |
| Modifier and Type | Method and Description |
|---|---|
protected ThrottlingDecision |
evaluateThrottling() |
protected int |
resize(int newSize)
resize the queue
|
protected Instant[] timestamps
protected LoadEstimator loadEstimator
protected AtomicInteger currentIndex
protected ThrottlingState(Clock clock, LoadEstimator le)
protected ThrottlingDecision evaluateThrottling()
protected int resize(int newSize)
newSize - new size of queueCopyright © 2013–2020 Adobe. All rights reserved.