类 RpcContextAttachment
- java.lang.Object
-
- org.apache.dubbo.rpc.RpcContext
-
- org.apache.dubbo.rpc.RpcContextAttachment
-
public class RpcContextAttachment extends RpcContext
-
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 voidclearAttachments()Map<String,Object>get()已过时。Objectget(String key)已过时。StringgetAttachment(String key)also seegetObjectAttachment(String).Map<String,String>getAttachments()已过时。ObjectgetObjectAttachment(String key)get attachment.Map<String,Object>getObjectAttachments()get attachments.RpcContextAttachmentremove(String key)已过时。RpcContextAttachmentremoveAttachment(String key)remove attachment.RpcContextAttachmentset(String key, Object value)已过时。RpcContextAttachmentsetAttachment(String key, Object value)RpcContextAttachmentsetAttachment(String key, String value)set attachment.RpcContextAttachmentsetAttachments(Map<String,String> attachment)set attachmentsRpcContextAttachmentsetObjectAttachment(String key, Object value)RpcContextAttachmentsetObjectAttachments(Map<String,Object> attachment)set attachments-
从类继承的方法 org.apache.dubbo.rpc.RpcContext
asyncCall, asyncCall, canRemove, clearAfterEachInvoke, getArguments, getAsyncContext, getClientAttachment, getCompletableFuture, getConsumerUrl, getContext, 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, isAsyncStarted, isClientSide, isConsumerSide, isProviderSide, isServerSide, removeClientAttachment, removeContext, removeContext, removeServerAttachment, removeServerContext, removeServiceContext, restoreContext, restoreServerContext, setArguments, setConsumerUrl, setFuture, setInvocation, setInvoker, setInvokers, setLocalAddress, setLocalAddress, setMethodName, setParameterTypes, setRemoteAddress, setRemoteAddress, setRemoteApplicationName, setRequest, setResponse, setRpcContext, setUrl, setUrls, startAsync, stopAsync
-
-
-
-
方法详细资料
-
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
-
-