类 RpcContextAttachment
- java.lang.Object
-
- org.apache.dubbo.rpc.RpcContext
-
- org.apache.dubbo.rpc.RpcContextAttachment
-
public class RpcContextAttachment extends RpcContext
-
-
嵌套类概要
-
从类继承的嵌套类/接口 org.apache.dubbo.rpc.RpcContext
RpcContext.RestoreContext, RpcContext.RestoreServiceContext
-
-
方法概要
-
从类继承的方法 org.apache.dubbo.rpc.RpcContext
asyncCall, asyncCall, canRemove, clearAfterEachInvoke, getArguments, getCancellationContext, getClientAttachment, getCompletableFuture, getConsumerUrl, getContext, getCurrentServiceContext, getFuture, getGroup, getInterfaceName, getInvocation, getInvoker, getInvokers, getLocalAddress, getLocalAddressString, getLocalHost, getLocalHostName, getLocalPort, getMethodName, getParameterTypes, getProtocol, getProtocolServiceKey, getRemoteAddress, getRemoteAddressString, getRemoteApplicationName, getRemoteHost, getRemoteHostName, getRemotePort, getRequest, getRequest, getResponse, getResponse, getServerAttachment, getServerContext, getServiceContext, getServiceKey, getUrl, getUrls, getVersion, isClientSide, isConsumerSide, isProviderSide, isServerSide, removeCancellationContext, removeClientAttachment, removeContext, removeServerAttachment, removeServerContext, removeServiceContext, restoreCancellationContext, restoreServiceContext, setArguments, setConsumerUrl, setFuture, setInvocation, setInvoker, setInvokers, setLocalAddress, setLocalAddress, setMethodName, setParameterTypes, setRemoteAddress, setRemoteAddress, setRemoteApplicationName, setRequest, setResponse, setRpcContext, setUrl, setUrls, storeServiceContext
-
-
-
-
方法详细资料
-
startAsync
public static AsyncContext startAsync() throws IllegalStateException
- 返回:
- 抛出:
IllegalStateException
-
isAsyncStarted
public boolean isAsyncStarted()
- 覆盖:
isAsyncStarted在类中RpcContext
-
stopAsync
public boolean stopAsync()
- 覆盖:
stopAsync在类中RpcContext
-
getAsyncContext
public AsyncContext getAsyncContext()
- 覆盖:
getAsyncContext在类中RpcContext
-
getAttachment
public String getAttachment(String key)
also seegetObjectAttachment(String).- 覆盖:
getAttachment在类中RpcContext- 参数:
key-- 返回:
- attachment
-
getObjectAttachment
public Object getObjectAttachment(String key)
get attachment.- 覆盖:
getObjectAttachment在类中RpcContext- 参数:
key-- 返回:
- attachment
-
setAttachment
public RpcContextAttachment setAttachment(String key, String value)
set attachment.- 覆盖:
setAttachment在类中RpcContext- 参数:
key-value-- 返回:
- context
-
setAttachment
public RpcContextAttachment setAttachment(String key, Object value)
- 覆盖:
setAttachment在类中RpcContext
-
setObjectAttachment
public RpcContextAttachment setObjectAttachment(String key, Object value)
- 覆盖:
setObjectAttachment在类中RpcContext
-
removeAttachment
public RpcContextAttachment removeAttachment(String key)
remove attachment.- 覆盖:
removeAttachment在类中RpcContext- 参数:
key-- 返回:
- context
-
getAttachments
@Deprecated public Map<String,String> getAttachments()
已过时。get attachments.- 覆盖:
getAttachments在类中RpcContext- 返回:
- attachments
-
getObjectAttachments
public Map<String,Object> getObjectAttachments()
get attachments.- 覆盖:
getObjectAttachments在类中RpcContext- 返回:
- attachments
-
setAttachments
public RpcContextAttachment setAttachments(Map<String,String> attachment)
set attachments- 覆盖:
setAttachments在类中RpcContext- 参数:
attachment-- 返回:
- context
-
setObjectAttachments
public RpcContextAttachment setObjectAttachments(Map<String,Object> attachment)
set attachments- 覆盖:
setObjectAttachments在类中RpcContext- 参数:
attachment-- 返回:
- context
-
clearAttachments
public void clearAttachments()
- 覆盖:
clearAttachments在类中RpcContext
-
get
@Deprecated public Map<String,Object> get()
已过时。get values.- 覆盖:
get在类中RpcContext- 返回:
- values
-
set
@Deprecated public RpcContextAttachment set(String key, Object value)
已过时。set value.- 覆盖:
set在类中RpcContext- 参数:
key-value-- 返回:
- context
-
remove
@Deprecated public RpcContextAttachment remove(String key)
已过时。remove value.- 覆盖:
remove在类中RpcContext- 参数:
key-- 返回:
- value
-
get
@Deprecated public Object get(String key)
已过时。get value.- 覆盖:
get在类中RpcContext- 参数:
key-- 返回:
- value
-
copyOf
public RpcContextAttachment copyOf(boolean needCopy)
Also seeRpcServiceContext.copyOf(boolean)- 返回:
- a copy of RpcContextAttachment with deep copied attachments
-
-