@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)
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–2023 The Apache Software Foundation. All rights reserved.