类 ThrottlingController
java.lang.Object
com.alibaba.csp.sentinel.slots.block.flow.controller.ThrottlingController
- 所有已实现的接口:
TrafficShapingController
- 从以下版本开始:
- 2.0
- 作者:
- Eric Zhao, jialiang.linjl
-
构造器概要
构造器构造器说明ThrottlingController(int queueingTimeoutMs, double maxCountPerStat) ThrottlingController(int queueingTimeoutMs, double maxCountPerStat, int statDurationMs) -
方法概要
-
构造器详细资料
-
ThrottlingController
public ThrottlingController(int queueingTimeoutMs, double maxCountPerStat) -
ThrottlingController
public ThrottlingController(int queueingTimeoutMs, double maxCountPerStat, int statDurationMs)
-
-
方法详细资料
-
canPass
从接口复制的说明:TrafficShapingControllerCheck whether given resource entry can pass with provided count.- 指定者:
canPass在接口中TrafficShapingController- 参数:
node- resource nodeacquireCount- count to acquire- 返回:
- true if the resource entry can pass; false if it should be blocked
-
canPass
从接口复制的说明:TrafficShapingControllerCheck whether given resource entry can pass with provided count.- 指定者:
canPass在接口中TrafficShapingController- 参数:
node- resource nodeacquireCount- count to acquireprioritized- whether the request is prioritized- 返回:
- true if the resource entry can pass; false if it should be blocked
-