@Deprecated @SPI public interface ClusterInterceptor
Filter, ClusterInterceptor works at the outmost layer, before one specific address/invoker is picked.| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
ClusterInterceptor.Listener
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
after(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation)
已过时。
|
void |
before(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation)
已过时。
|
default Result |
intercept(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation)
已过时。
Override this method or
before(AbstractClusterInvoker, Invocation)
and after(AbstractClusterInvoker, Invocation) methods to add your own logic expected to be
executed before and after invoke. |
void before(AbstractClusterInvoker<?> clusterInvoker, Invocation invocation)
void after(AbstractClusterInvoker<?> clusterInvoker, Invocation invocation)
default Result intercept(AbstractClusterInvoker<?> clusterInvoker, Invocation invocation) throws RpcException
before(AbstractClusterInvoker, Invocation)
and after(AbstractClusterInvoker, Invocation) methods to add your own logic expected to be
executed before and after invoke.clusterInvoker - invocation - RpcExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.