@Activate(group="consumer", value="actives") public class ActiveLimitFilter extends ListenableFilter
e.g.
In the above example maximum 2 concurrent invocation is allowed.
If there are more than configured (in this example 2) is trying to invoke remote method, then rest of invocation
will wait for configured timeout(default is 0 second) before invocation gets kill by dubbo.
FilterFilter.Listener| 构造器和说明 |
|---|
ActiveLimitFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
invoke(Invoker<?> invoker,
Invocation invocation)
Does not need to override/implement this method.
|
listeneronResponsepublic Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException
FilterRpcExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.