Package org.apache.dubbo.rpc.filter.tps
Class DefaultTPSLimiter
java.lang.Object
org.apache.dubbo.rpc.filter.tps.DefaultTPSLimiter
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAllowable(URL url, Invocation invocation) judge if the current invocation is allowed by TPS rule
-
Constructor Details
-
DefaultTPSLimiter
public DefaultTPSLimiter()
-
-
Method Details
-
isAllowable
Description copied from interface:TPSLimiterjudge if the current invocation is allowed by TPS rule- Specified by:
isAllowablein interfaceTPSLimiter- Parameters:
url- urlinvocation- invocation- Returns:
- true allow the current invocation, otherwise, return false
-