public class WarmUpRateLimiterController extends WarmUpController
count, lastFilledTime, slope, storedTokens, warningToken| Constructor and Description |
|---|
WarmUpRateLimiterController(double count,
int warmUpPeriodSec,
int timeOutMs,
int coldFactor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPass(Node node,
int acquireCount)
Check whether given resource entry can pass with provided count.
|
boolean |
canPass(Node node,
int acquireCount,
boolean prioritized)
Check whether given resource entry can pass with provided count.
|
syncTokenpublic WarmUpRateLimiterController(double count,
int warmUpPeriodSec,
int timeOutMs,
int coldFactor)
public boolean canPass(Node node, int acquireCount)
TrafficShapingControllercanPass in interface TrafficShapingControllercanPass in class WarmUpControllernode - resource nodeacquireCount - count to acquirepublic boolean canPass(Node node, int acquireCount, boolean prioritized)
TrafficShapingControllercanPass in interface TrafficShapingControllercanPass in class WarmUpControllernode - resource nodeacquireCount - count to acquireprioritized - whether the request is prioritizedCopyright © 2019 Alibaba Group. All rights reserved.