Class DefaultTPSLimiter

java.lang.Object
org.apache.dubbo.rpc.filter.tps.DefaultTPSLimiter
All Implemented Interfaces:
TPSLimiter

public class DefaultTPSLimiter extends Object implements TPSLimiter
DefaultTPSLimiter is a default implementation for tps filter. It is an in memory based implementation for storing tps information. It internally use
See Also:
  • Constructor Details

    • DefaultTPSLimiter

      public DefaultTPSLimiter()
  • Method Details

    • isAllowable

      public boolean isAllowable(URL url, Invocation invocation)
      Description copied from interface: TPSLimiter
      judge if the current invocation is allowed by TPS rule
      Specified by:
      isAllowable in interface TPSLimiter
      Parameters:
      url - url
      invocation - invocation
      Returns:
      true allow the current invocation, otherwise, return false