类 ConcurrentClusterFlowChecker
java.lang.Object
com.alibaba.csp.sentinel.cluster.flow.ConcurrentClusterFlowChecker
- 作者:
- yunfeiyanggzq
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static com.alibaba.csp.sentinel.cluster.TokenResultacquireConcurrentToken(String clientAddress, com.alibaba.csp.sentinel.slots.block.flow.FlowRule rule, int acquireCount) static doublecalcGlobalThreshold(com.alibaba.csp.sentinel.slots.block.flow.FlowRule rule) static com.alibaba.csp.sentinel.cluster.TokenResultreleaseConcurrentToken(long tokenId)
-
构造器详细资料
-
ConcurrentClusterFlowChecker
public ConcurrentClusterFlowChecker()
-
-
方法详细资料
-
calcGlobalThreshold
public static double calcGlobalThreshold(com.alibaba.csp.sentinel.slots.block.flow.FlowRule rule) -
acquireConcurrentToken
public static com.alibaba.csp.sentinel.cluster.TokenResult acquireConcurrentToken(String clientAddress, com.alibaba.csp.sentinel.slots.block.flow.FlowRule rule, int acquireCount) -
releaseConcurrentToken
public static com.alibaba.csp.sentinel.cluster.TokenResult releaseConcurrentToken(long tokenId)
-