接口 TrafficShapingController

所有已知实现类:
DefaultController, ThrottlingController, WarmUpController, WarmUpRateLimiterController

public interface TrafficShapingController
A universal interface for traffic shaping controller.
作者:
jialiang.linjl
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    canPass(Node node, int acquireCount)
    Check whether given resource entry can pass with provided count.
    boolean
    canPass(Node node, int acquireCount, boolean prioritized)
    Check whether given resource entry can pass with provided count.
  • 方法详细资料

    • canPass

      boolean canPass(Node node, int acquireCount, boolean prioritized)
      Check whether given resource entry can pass with provided count.
      参数:
      node - resource node
      acquireCount - count to acquire
      prioritized - whether the request is prioritized
      返回:
      true if the resource entry can pass; false if it should be blocked
    • canPass

      boolean canPass(Node node, int acquireCount)
      Check whether given resource entry can pass with provided count.
      参数:
      node - resource node
      acquireCount - count to acquire
      返回:
      true if the resource entry can pass; false if it should be blocked