类 DefaultController
java.lang.Object
com.alibaba.csp.sentinel.slots.block.flow.controller.DefaultController
- 所有已实现的接口:
TrafficShapingController
Default throttling controller (immediately reject strategy).
- 作者:
- jialiang.linjl, Eric Zhao
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
DefaultController
public DefaultController(double count, int grade)
-
-
方法详细资料
-
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
-