@SPI public interface Filter
They way filter work from sequence point of view is
...code before filter ...
invoker.invoke(invocation) //filter work in a filter implementation class
...code after filter ...
Caching is implemented in dubbo using filter approach. If cache is configured for invocation then before
remote call configured caching type's (e.g. Thread Local, JCache etc) implementation invoke method gets called.
Filter. (SPI, Singleton, ThreadSafe)GenericFilter,
EchoFilter,
TokenFilter,
TpsLimitFilter| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
Filter.Listener |
Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException
RpcExceptionCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.