| 限定符 | 构造器和说明 |
|---|---|
protected |
FilterChain(List<Filter> filters,
FilterInvoker lastInvoker,
AbstractInterfaceConfig config)
构造执行链
|
| 限定符和类型 | 方法和说明 |
|---|---|
static FilterChain |
buildConsumerChain(ConsumerConfig<?> consumerConfig,
FilterInvoker lastFilter)
构造调用端的执行链
|
static FilterChain |
buildProviderChain(ProviderConfig<?> providerConfig,
FilterInvoker lastFilter)
构造服务端的执行链
|
protected Invoker |
getChain()
得到执行链
|
SofaResponse |
invoke(SofaRequest sofaRequest)
执行调用
|
void |
onAsyncResponse(ConsumerConfig config,
SofaRequest request,
SofaResponse response,
Throwable throwable)
Do filtering when async respond from server
|
protected FilterChain(List<Filter> filters, FilterInvoker lastInvoker, AbstractInterfaceConfig config)
filters - 包装过滤器列表lastInvoker - 最终过滤器config - 接口配置public static FilterChain buildProviderChain(ProviderConfig<?> providerConfig, FilterInvoker lastFilter)
providerConfig - provider配置lastFilter - 最后一个filterpublic static FilterChain buildConsumerChain(ConsumerConfig<?> consumerConfig, FilterInvoker lastFilter)
consumerConfig - consumer配置lastFilter - 最后一个filterpublic SofaResponse invoke(SofaRequest sofaRequest) throws SofaRpcException
Invokerinvoke 在接口中 InvokersofaRequest - 请求SofaRpcException - rpc异常public void onAsyncResponse(ConsumerConfig config, SofaRequest request, SofaResponse response, Throwable throwable) throws SofaRpcException
config - Consumer configrequest - SofaRequestresponse - SofaResponsethrowable - Throwable when invokeSofaRpcException - occur errorprotected Invoker getChain()
Copyright © 2008–2018 The Ant Financial. All rights reserved.