Package org.apache.dubbo.rpc.filter
Class TpsLimitFilter
java.lang.Object
org.apache.dubbo.rpc.filter.TpsLimitFilter
- All Implemented Interfaces:
BaseFilter,Filter
@Activate(group="provider",
value="tps")
public class TpsLimitFilter
extends Object
implements Filter
TpsLimitFilter limit the TPS (transaction per second) for all method of a service or a particular method.
Service or method url can define tps or tps.interval to control this control.It use
DefaultTPSLimiter
as it limit checker. If a provider service method is configured with tps(optionally with tps.interval),then
if invocation count exceed the configured tps value (default is -1 which means unlimited) then invocation will get
RpcException.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.dubbo.rpc.BaseFilter
BaseFilter.Listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvoke(Invoker<?> invoker, Invocation invocation) Always call invoker.invoke() in the implementation to hand over the request to the next filter node.
-
Constructor Details
-
TpsLimitFilter
public TpsLimitFilter()
-
-
Method Details
-
invoke
Description copied from interface:BaseFilterAlways call invoker.invoke() in the implementation to hand over the request to the next filter node.- Specified by:
invokein interfaceBaseFilter- Throws:
RpcException
-