public class RateLimiterController extends Object implements TrafficShapingController
| Constructor and Description |
|---|
RateLimiterController(int timeOut,
double count) |
| 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.
|
public boolean canPass(Node node, int acquireCount)
TrafficShapingControllercanPass in interface TrafficShapingControllernode - resource nodeacquireCount - count to acquirepublic boolean canPass(Node node, int acquireCount, boolean prioritized)
TrafficShapingControllercanPass in interface TrafficShapingControllernode - resource nodeacquireCount - count to acquireprioritized - whether the request is prioritizedCopyright © 2019 Alibaba Group. All rights reserved.