类 FlowRule
java.lang.Object
com.alibaba.csp.sentinel.slots.block.AbstractRule
com.alibaba.csp.sentinel.slots.block.flow.FlowRule
- 所有已实现的接口:
Rule
Each flow rule is mainly composed of three factors: grade, strategy and controlBehavior:
- The
graderepresents the threshold type of flow control (by QPS or thread count). - The
strategyrepresents the strategy based on invocation relation. - The
controlBehaviorrepresents the QPS shaping behavior (actions on incoming request when QPS exceeds the threshold).
- 作者:
- jialiang.linjl, Eric Zhao
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanintdoublegetCount()intgetGrade()intintintinthashCode()booleansetClusterConfig(ClusterFlowConfig clusterConfig) setClusterMode(boolean clusterMode) setControlBehavior(int controlBehavior) setCount(double count) setGrade(int grade) setMaxQueueingTimeMs(int maxQueueingTimeMs) setRefResource(String refResource) setStrategy(int strategy) setWarmUpPeriodSec(int warmUpPeriodSec) toString()从类继承的方法 com.alibaba.csp.sentinel.slots.block.AbstractRule
as, getId, getLimitApp, getResource, isRegex, setId, setLimitApp, setRegex, setResource
-
构造器详细资料
-
FlowRule
public FlowRule() -
FlowRule
-
-
方法详细资料
-
getControlBehavior
public int getControlBehavior() -
setControlBehavior
-
getMaxQueueingTimeMs
public int getMaxQueueingTimeMs() -
setMaxQueueingTimeMs
-
getWarmUpPeriodSec
public int getWarmUpPeriodSec() -
setWarmUpPeriodSec
-
getGrade
public int getGrade() -
setGrade
-
getCount
public double getCount() -
setCount
-
getStrategy
public int getStrategy() -
setStrategy
-
getRefResource
-
setRefResource
-
isClusterMode
public boolean isClusterMode() -
setClusterMode
-
getClusterConfig
-
setClusterConfig
-
equals
- 覆盖:
equals在类中AbstractRule
-
hashCode
public int hashCode()- 覆盖:
hashCode在类中AbstractRule
-
toString
-