Package com.alibaba.dubbo.rpc
Class RpcContext
java.lang.Object
com.alibaba.dubbo.rpc.RpcContext
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.one way async call, send request only, and result is not required<T> Future<T> Deprecated.Async invocation.voidDeprecated.get()Deprecated.get values.Deprecated.Object[]Deprecated.getAttachment(String key) Deprecated.Deprecated.static RpcContextDeprecated.static RpcContextDeprecated.<T> Future<T> Deprecated.Deprecated.Invoker<?> Deprecated.Deprecated.Deprecated.get local address.Deprecated.Deprecated.Deprecated.intDeprecated.Deprecated.Class<?>[]Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.intDeprecated.Deprecated.<T> TgetRequest(Class<T> clazz) Deprecated.Deprecated.Get the response object of the underlying RPC protocol, e.g.<T> TgetResponse(Class<T> clazz) Deprecated.Get the response object of the underlying RPC protocol, e.g.static RpcContextDeprecated.static RpcContextDeprecated.getUrl()Deprecated.getUrls()Deprecated.booleanDeprecated.booleanDeprecated.is consumer side.booleanDeprecated.is provider side.booleanDeprecated.Deprecated.removeAttachment(String key) Deprecated.static voidDeprecated.static voidDeprecated.static voidDeprecated.static voidDeprecated.Deprecated.set value.voidsetArguments(Object[] arguments) Deprecated.setAttachment(String key, String value) Deprecated.setAttachments(Map<String, String> attachment) Deprecated.voidsetFuture(CompletableFuture<?> future) Deprecated.setLocalAddress(String host, int port) Deprecated.setLocalAddress(InetSocketAddress address) Deprecated.voidsetMethodName(String methodName) Deprecated.voidsetParameterTypes(Class<?>[] parameterTypes) Deprecated.setRemoteAddress(String host, int port) Deprecated.setRemoteAddress(InetSocketAddress address) Deprecated.voidsetRequest(Object request) Deprecated.voidsetResponse(Object response) Deprecated.voidDeprecated.voidDeprecated.
-
Constructor Details
-
RpcContext
public RpcContext(org.apache.dubbo.rpc.RpcContext newRpcContext) Deprecated.
-
-
Method Details
-
getContext
Deprecated. -
getServerContext
Deprecated. -
getClientResponseContext
Deprecated. -
getServerResponseContext
Deprecated. -
removeClientResponseContext
public static void removeClientResponseContext()Deprecated. -
removeServerResponseContext
public static void removeServerResponseContext()Deprecated. -
removeServerContext
public static void removeServerContext()Deprecated. -
removeContext
public static void removeContext()Deprecated. -
getRequest
Deprecated. -
getRequest
Deprecated. -
setRequest
Deprecated. -
getResponse
Deprecated.Get the response object of the underlying RPC protocol, e.g. HttpServletResponse- Returns:
- null if the underlying protocol doesn't provide support for getting response
-
getResponse
Deprecated.Get the response object of the underlying RPC protocol, e.g. HttpServletResponse- Returns:
- null if the underlying protocol doesn't provide support for getting response or the response is not of the specified type
-
setResponse
Deprecated. -
isProviderSide
public boolean isProviderSide()Deprecated.is provider side.- Returns:
- provider side.
-
isConsumerSide
public boolean isConsumerSide()Deprecated.is consumer side.- Returns:
- consumer side.
-
getUrls
Deprecated. -
setUrls
Deprecated. -
getUrl
Deprecated. -
setUrl
Deprecated. -
getMethodName
Deprecated. -
setMethodName
Deprecated. -
getParameterTypes
Deprecated. -
setParameterTypes
Deprecated. -
getArguments
Deprecated. -
setArguments
Deprecated. -
setLocalAddress
Deprecated. -
getLocalAddress
Deprecated.get local address.- Returns:
- local address
-
setLocalAddress
Deprecated. -
getLocalAddressString
Deprecated. -
getLocalHostName
Deprecated. -
setRemoteAddress
Deprecated. -
getRemoteAddress
Deprecated. -
setRemoteAddress
Deprecated. -
getRemoteAddressString
Deprecated. -
getRemoteHostName
Deprecated. -
getLocalHost
Deprecated. -
getLocalPort
public int getLocalPort()Deprecated. -
getRemoteHost
Deprecated. -
getRemotePort
public int getRemotePort()Deprecated. -
getAttachment
Deprecated. -
setAttachment
Deprecated. -
removeAttachment
Deprecated. -
getAttachments
Deprecated. -
setAttachments
Deprecated. -
clearAttachments
public void clearAttachments()Deprecated. -
get
Deprecated.get values.- Returns:
- values
-
set
Deprecated.set value.- Parameters:
key-value-- Returns:
- context
-
remove
Deprecated. -
get
Deprecated. -
getInvocation
Deprecated. -
isServerSide
Deprecated. -
isClientSide
Deprecated. -
getInvoker
Deprecated. -
getInvokers
Deprecated. -
asyncCall
Deprecated.Async invocation. Timeout will be handled even ifFuture.get()is not called.- Parameters:
callable-- Returns:
- get the return result from
future.get()
-
asyncCall
Deprecated.one way async call, send request only, and result is not required- Parameters:
runnable-
-
getFuture
Deprecated. -
setFuture
Deprecated.
-