@Activate(group="consumer",
order=-10000)
public class ConsumerContextFilter
extends Object
implements ClusterFilter, BaseFilter.Listener
Filter,
RpcContextBaseFilter.Listener| 构造器和说明 |
|---|
ConsumerContextFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
invoke(Invoker<?> invoker,
Invocation invocation) |
void |
onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException
invoke 在接口中 BaseFilterRpcExceptionpublic void onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation)
onResponse 在接口中 BaseFilter.Listenerpublic void onError(Throwable t, Invoker<?> invoker, Invocation invocation)
onError 在接口中 BaseFilter.ListenerCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.