@Activate(group="provider", value="tps") public class TpsLimitFilter extends Object implements Filter
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.Filter.Listener| Constructor and Description |
|---|
TpsLimitFilter() |
| Modifier and Type | Method and Description |
|---|---|
Result |
invoke(Invoker<?> invoker,
Invocation invocation)
Make sure call invoker.invoke() in your implementation.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonResponsepublic Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException
Filterinvoke in interface FilterRpcExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.