@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 |
| Modifier and Type | Method and Description |
|---|---|
void |
after(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation) |
void |
before(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation) |
default Result |
intercept(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation)
Does not need to override this method, override
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.