| 程序包 | 说明 |
|---|---|
| com.alipay.sofa.rpc.context | |
| com.alipay.sofa.rpc.message.bolt | |
| com.alipay.sofa.rpc.transport | |
| com.alipay.sofa.rpc.transport.bolt | |
| com.alipay.sofa.rpc.transport.http |
| 限定符和类型 | 方法和说明 |
|---|---|
RpcInternalContext |
RpcInternalContext.clearAttachments()
Clear attachments.
|
RpcInternalContext |
RpcInternalContext.clone() |
static RpcInternalContext |
RpcInternalContext.getContext()
得到上下文,为空则自动创建
|
static RpcInternalContext |
RpcInternalContext.peekContext()
查看上下文,为空不自动创建
|
RpcInternalContext |
RpcInternalContext.setAttachment(String key,
Object value)
set attachment.
|
RpcInternalContext |
RpcInternalContext.setAttachments(Map<String,Object> attachments)
key不能以点和下划线开头
|
RpcInternalContext |
RpcInternalContext.setFuture(ResponseFuture<?> future)
set future.
|
RpcInternalContext |
RpcInternalContext.setLocalAddress(InetSocketAddress address)
set local address.
|
RpcInternalContext |
RpcInternalContext.setLocalAddress(String host,
int port)
已过时。
|
RpcInternalContext |
RpcInternalContext.setProviderInfo(ProviderInfo providerInfo)
Sets provider info.
|
RpcInternalContext |
RpcInternalContext.setProviderSide(Boolean isProviderSide)
Sets provider side.
|
RpcInternalContext |
RpcInternalContext.setRemoteAddress(InetSocketAddress address)
set remote address.
|
RpcInternalContext |
RpcInternalContext.setRemoteAddress(String host,
int port)
set remote address.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
RpcInternalContext.setContext(RpcInternalContext context)
设置上下文
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected RpcInternalContext |
AbstractInvokeCallback.context
线程上下文
|
| 构造器和说明 |
|---|
AbstractInvokeCallback(ConsumerConfig consumerConfig,
ProviderInfo providerInfo,
SofaRequest request,
RpcInternalContext context,
ClassLoader classLoader) |
BoltFutureInvokeCallback(ConsumerConfig consumerConfig,
ProviderInfo providerInfo,
BoltResponseFuture rpcFuture,
SofaRequest request,
RpcInternalContext context,
ClassLoader classLoader)
Instantiates a new Bolt future invoke callback.
|
BoltInvokerCallback(ConsumerConfig consumerConfig,
ProviderInfo providerInfo,
SofaResponseCallback listener,
SofaRequest request,
RpcInternalContext context,
ClassLoader classLoader)
Instantiates a new Bolt invoker callback.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
AbstractProxyClientTransport.afterSend(RpcInternalContext context,
SofaRequest request)
调用后设置一些属性(注意,在异步的情况较多下)
|
protected void |
AbstractProxyClientTransport.beforeSend(RpcInternalContext context,
SofaRequest request)
调用前设置一些属性
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
BoltClientTransport.afterSend(RpcInternalContext context,
com.alipay.remoting.InvokeContext invokeContext,
SofaRequest request)
调用后设置一些属性(注意,在异步的情况较多下)
|
protected void |
BoltClientTransport.beforeSend(RpcInternalContext context,
SofaRequest request)
调用前设置一些属性
|
protected ResponseFuture |
BoltClientTransport.doInvokeAsync(SofaRequest request,
RpcInternalContext rpcContext,
com.alipay.remoting.InvokeContext invokeContext,
int timeoutMillis)
异步调用
|
protected void |
BoltClientTransport.putToContextIfNotNull(com.alipay.remoting.InvokeContext invokeContext,
String oldKey,
RpcInternalContext context,
String key) |
| 限定符和类型 | 字段和说明 |
|---|---|
protected RpcInternalContext |
AbstractHttpClientHandler.context
线程上下文
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
AbstractHttp2ClientTransport.afterSend(RpcInternalContext context,
SofaRequest request)
调用后设置一些属性(注意,在异步的情况较多下)
|
protected void |
AbstractHttp2ClientTransport.beforeSend(RpcInternalContext context,
SofaRequest request)
调用前设置一些属性
|
protected ResponseFuture |
AbstractHttp2ClientTransport.doInvokeAsync(SofaRequest request,
RpcInternalContext rpcContext,
int timeoutMillis)
异步调用
|
| 构造器和说明 |
|---|
AbstractHttpClientHandler(ConsumerConfig consumerConfig,
ProviderInfo providerInfo,
SofaRequest request,
RpcInternalContext context,
ClassLoader classLoader) |
CallbackInvokeClientHandler(ConsumerConfig consumerConfig,
ProviderInfo providerInfo,
SofaResponseCallback listener,
SofaRequest request,
RpcInternalContext context,
ClassLoader classLoader)
Instantiates a CallbackInvokeClientHandler
|
FutureInvokeClientHandler(ConsumerConfig consumerConfig,
ProviderInfo providerInfo,
HttpResponseFuture rpcFuture,
SofaRequest request,
RpcInternalContext context,
ClassLoader classLoader)
Instantiates a new FutureInvokeClientHandler.
|
SyncInvokeClientHandler(ConsumerConfig consumerConfig,
ProviderInfo providerInfo,
HttpResponseFuture rpcFuture,
SofaRequest request,
RpcInternalContext context,
ClassLoader classLoader)
Instantiates a new SyncInvokeClientHandler.
|
Copyright © 2008–2018 The Ant Financial. All rights reserved.