类 ConcurrentClusterFlowChecker

java.lang.Object
com.alibaba.csp.sentinel.cluster.flow.ConcurrentClusterFlowChecker

public final class ConcurrentClusterFlowChecker extends Object
作者:
yunfeiyanggzq
  • 构造器详细资料

    • 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)