@Activate(group="consumer", order=-1) public class ObservationSenderFilter extends Object implements ClusterFilter, BaseFilter.Listener, ScopeModelAware
Filter that creates an Observation around the outgoing message.BaseFilter.Listener| 构造器和说明 |
|---|
ObservationSenderFilter(ApplicationModel applicationModel) |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
invoke(Invoker<?> invoker,
Invocation invocation) |
void |
onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
setApplicationModel, setFrameworkModel, setModuleModel, setScopeModelpublic ObservationSenderFilter(ApplicationModel applicationModel)
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–2020 The Apache Software Foundation. All rights reserved.