接口 TrafficShapingController
public interface TrafficShapingController
A universal interface for traffic shaping controller.
- 作者:
- jialiang.linjl
-
方法概要
-
方法详细资料
-
canPass
Check whether given resource entry can pass with provided count.- 参数:
node- resource nodeacquireCount- count to acquireprioritized- whether the request is prioritized- 返回:
- true if the resource entry can pass; false if it should be blocked
-
canPass
Check whether given resource entry can pass with provided count.- 参数:
node- resource nodeacquireCount- count to acquire- 返回:
- true if the resource entry can pass; false if it should be blocked
-