@Deprecated @SPI public interface ClusterInterceptor
Filter, ClusterInterceptor works at the outmost layer, before one specific address/invoker is picked.| Modifier and Type | Interface and Description |
|---|---|
static interface |
ClusterInterceptor.Listener
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
after(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation)
Deprecated.
|
void |
before(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation)
Deprecated.
|
default Result |
intercept(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation)
Deprecated.
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–2022 The Apache Software Foundation. All rights reserved.