Package org.apache.dubbo.rpc
Class RpcServerContextAttachment
java.lang.Object
org.apache.dubbo.rpc.RpcContext
org.apache.dubbo.rpc.RpcContextAttachment
org.apache.dubbo.rpc.RpcServerContextAttachment
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.dubbo.rpc.RpcContext
RpcContext.RestoreContext, RpcContext.RestoreServiceContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyOf(boolean needCopy) Also seeRpcServiceContext.copyOf(boolean)get()get values.get value.getAttachment(String key) get attachments.get attachment.get attachments.booleanremove value.removeAttachment(String key) remove attachment.set value.setAttachment(String key, Object value) setAttachment(String key, String value) set attachment.setAttachments(Map<String, String> attachment) set attachmentssetObjectAttachment(String key, Object value) setObjectAttachments(Map<String, Object> attachment) set attachmentsbooleanMethods inherited from class org.apache.dubbo.rpc.RpcContextAttachment
startAsyncMethods inherited from class org.apache.dubbo.rpc.RpcContext
asyncCall, asyncCall, canRemove, clearAfterEachInvoke, getArguments, getCancellationContext, getClientAttachment, getClientResponseContext, 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, getServerResponseContext, getServiceContext, getServiceKey, getUrl, getUrls, getVersion, isClientSide, isConsumerSide, isProviderSide, isServerSide, removeCancellationContext, removeClientAttachment, removeClientResponseContext, removeContext, removeServerAttachment, removeServerContext, removeServerResponseContext, removeServiceContext, restoreCancellationContext, restoreServiceContext, setArguments, setConsumerUrl, setFuture, setInvocation, setInvoker, setInvokers, setLocalAddress, setLocalAddress, setMethodName, setParameterTypes, setRemoteAddress, setRemoteAddress, setRemoteApplicationName, setRequest, setResponse, setRpcContext, setUrl, setUrls, storeServiceContext
-
Constructor Details
-
RpcServerContextAttachment
public RpcServerContextAttachment()
-
-
Method Details
-
copyOf
Description copied from class:RpcContextAttachmentAlso seeRpcServiceContext.copyOf(boolean)- Overrides:
copyOfin classRpcContextAttachment- Returns:
- a copy of RpcContextAttachment with deep copied attachments
-
setObjectAttachment
- Overrides:
setObjectAttachmentin classRpcContextAttachment
-
isAsyncStarted
public boolean isAsyncStarted()- Overrides:
isAsyncStartedin classRpcContextAttachment
-
stopAsync
public boolean stopAsync()- Overrides:
stopAsyncin classRpcContextAttachment
-
getAsyncContext
- Overrides:
getAsyncContextin classRpcContextAttachment
-
getAttachment
Description copied from class:RpcContextAttachment- Overrides:
getAttachmentin classRpcContextAttachment- Parameters:
key-- Returns:
- attachment
-
getObjectAttachment
Description copied from class:RpcContextAttachmentget attachment.- Overrides:
getObjectAttachmentin classRpcContextAttachment- Parameters:
key-- Returns:
- attachment
-
setAttachment
Description copied from class:RpcContextAttachmentset attachment.- Overrides:
setAttachmentin classRpcContextAttachment- Parameters:
key-value-- Returns:
- context
-
setAttachment
- Overrides:
setAttachmentin classRpcContextAttachment
-
removeAttachment
Description copied from class:RpcContextAttachmentremove attachment.- Overrides:
removeAttachmentin classRpcContextAttachment- Parameters:
key-- Returns:
- context
-
getAttachments
Description copied from class:RpcContextAttachmentget attachments.- Overrides:
getAttachmentsin classRpcContextAttachment- Returns:
- attachments
-
getObjectAttachments
Description copied from class:RpcContextAttachmentget attachments.- Overrides:
getObjectAttachmentsin classRpcContextAttachment- Returns:
- attachments
-
setAttachments
Description copied from class:RpcContextAttachmentset attachments- Overrides:
setAttachmentsin classRpcContextAttachment- Parameters:
attachment-- Returns:
- context
-
setObjectAttachments
Description copied from class:RpcContextAttachmentset attachments- Overrides:
setObjectAttachmentsin classRpcContextAttachment- Parameters:
attachment-- Returns:
- context
-
clearAttachments
public void clearAttachments()- Overrides:
clearAttachmentsin classRpcContextAttachment
-
get
Description copied from class:RpcContextAttachmentget values.- Overrides:
getin classRpcContextAttachment- Returns:
- values
-
set
Description copied from class:RpcContextAttachmentset value.- Overrides:
setin classRpcContextAttachment- Parameters:
key-value-- Returns:
- context
-
remove
Description copied from class:RpcContextAttachmentremove value.- Overrides:
removein classRpcContextAttachment- Parameters:
key-- Returns:
- value
-
get
Description copied from class:RpcContextAttachmentget value.- Overrides:
getin classRpcContextAttachment- Parameters:
key-- Returns:
- value
-