public class RpcContextAttachment extends RpcContext
RpcContext.RestoreContextasyncCall, asyncCall, canRemove, clearAfterEachInvoke, getArguments, getCancellationContext, 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, isClientSide, isConsumerSide, isProviderSide, isServerSide, removeCancellationContext, removeClientAttachment, removeContext, removeServerAttachment, removeServerContext, removeServiceContext, restoreCancellationContext, setArguments, setConsumerUrl, setFuture, setInvocation, setInvoker, setInvokers, setLocalAddress, setLocalAddress, setMethodName, setParameterTypes, setRemoteAddress, setRemoteAddress, setRemoteApplicationName, setRequest, setResponse, setRpcContext, setUrl, setUrlspublic static AsyncContext startAsync() throws IllegalStateException
IllegalStateExceptionpublic boolean isAsyncStarted()
isAsyncStarted in class RpcContextpublic boolean stopAsync()
stopAsync in class RpcContextpublic AsyncContext getAsyncContext()
getAsyncContext in class RpcContextpublic String getAttachment(String key)
getObjectAttachment(String).getAttachment in class RpcContextkey - public Object getObjectAttachment(String key)
getObjectAttachment in class RpcContextkey - public RpcContextAttachment setAttachment(String key, String value)
setAttachment in class RpcContextkey - value - public RpcContextAttachment setAttachment(String key, Object value)
setAttachment in class RpcContextpublic RpcContextAttachment setObjectAttachment(String key, Object value)
setObjectAttachment in class RpcContextpublic RpcContextAttachment removeAttachment(String key)
removeAttachment in class RpcContextkey - @Deprecated public Map<String,String> getAttachments()
getAttachments in class RpcContextpublic Map<String,Object> getObjectAttachments()
getObjectAttachments in class RpcContextpublic RpcContextAttachment setAttachments(Map<String,String> attachment)
setAttachments in class RpcContextattachment - public RpcContextAttachment setObjectAttachments(Map<String,Object> attachment)
setObjectAttachments in class RpcContextattachment - public void clearAttachments()
clearAttachments in class RpcContext@Deprecated public Map<String,Object> get()
get in class RpcContext@Deprecated public RpcContextAttachment set(String key, Object value)
set in class RpcContextkey - value - @Deprecated public RpcContextAttachment remove(String key)
remove in class RpcContextkey - @Deprecated public Object get(String key)
get in class RpcContextkey - public RpcContextAttachment copyOf(boolean needCopy)
RpcServiceContext.copyOf(boolean)Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.