| 程序包 | 说明 |
|---|---|
| org.apache.dubbo.rpc | |
| org.apache.dubbo.rpc.support |
| 限定符和类型 | 方法和说明 |
|---|---|
static RpcContext |
RpcContext.getContext()
get context.
|
static RpcContext |
RpcContext.getServerContext()
get server side context.
|
RpcContext |
RpcContext.remove(String key)
remove value.
|
RpcContext |
RpcContext.removeAttachment(String key)
remove attachment.
|
RpcContext |
RpcContext.set(String key,
Object value)
set value.
|
RpcContext |
RpcContext.setAttachment(String key,
Object value) |
RpcContext |
RpcContext.setAttachment(String key,
String value)
set attachment.
|
RpcContext |
RpcContext.setAttachments(Map<String,String> attachment)
set attachments
|
RpcContext |
RpcContext.setInvocation(Invocation invocation) |
RpcContext |
RpcContext.setInvoker(Invoker<?> invoker) |
RpcContext |
RpcContext.setInvokers(List<Invoker<?>> invokers) |
RpcContext |
RpcContext.setLocalAddress(InetSocketAddress address)
set local address.
|
RpcContext |
RpcContext.setLocalAddress(String host,
int port)
set local address.
|
RpcContext |
RpcContext.setObjectAttachment(String key,
Object value) |
RpcContext |
RpcContext.setObjectAttachments(Map<String,Object> attachment)
set attachments
|
RpcContext |
RpcContext.setRemoteAddress(InetSocketAddress address)
set remote address.
|
RpcContext |
RpcContext.setRemoteAddress(String host,
int port)
set remote address.
|
RpcContext |
RpcContext.setRemoteApplicationName(String remoteApplicationName) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
RpcContext.restoreContext(RpcContext oldContext) |
static void |
RpcContext.restoreServerContext(RpcContext oldServerContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
RpcUtils.getTimeout(URL url,
String methodName,
RpcContext context,
long defaultTimeout) |
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.