public interface TimeAndErrorsState
TimeAndErrorsThrottler.| Modifier and Type | Method and Description |
|---|---|
void |
consumeError()
Consumes errors from the error bucket.
|
void |
consumeTime(Duration elapsed)
Consumes request time from the time bucket.
|
Instant |
throttledUntil()
A user is throttled until this instant.
|
void consumeTime(Duration elapsed)
min(elapsed.toMillis(), timeBucket.getNumTokens()).elapsed - time elapsed during the requestvoid consumeError()
Copyright © 2019. All rights reserved.