类 RpcContext
- java.lang.Object
-
- com.alibaba.dubbo.rpc.RpcContext
-
@Deprecated public class RpcContext extends Object
已过时。
-
-
构造器概要
构造器 构造器 说明 RpcContext(RpcContext newRpcContext)
已过时。
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 void
asyncCall(Runnable runnable)
已过时。one way async call, send request only, and result is not required<T> Future<T>
asyncCall(Callable<T> callable)
已过时。Async invocation.void
clearAttachments()
已过时。Map<String,Object>
get()
已过时。get values.Object
get(String key)
已过时。Object[]
getArguments()
已过时。String
getAttachment(String key)
已过时。Map<String,String>
getAttachments()
已过时。static RpcContext
getContext()
已过时。<T> Future<T>
getFuture()
已过时。InetSocketAddress
getLocalAddress()
已过时。get local address.String
getLocalAddressString()
已过时。String
getLocalHost()
已过时。String
getLocalHostName()
已过时。int
getLocalPort()
已过时。String
getMethodName()
已过时。Class<?>[]
getParameterTypes()
已过时。InetSocketAddress
getRemoteAddress()
已过时。String
getRemoteAddressString()
已过时。String
getRemoteHost()
已过时。String
getRemoteHostName()
已过时。int
getRemotePort()
已过时。Object
getRequest()
已过时。<T> T
getRequest(Class<T> clazz)
已过时。Object
getResponse()
已过时。Get the response object of the underlying RPC protocol, e.g.<T> T
getResponse(Class<T> clazz)
已过时。Get the response object of the underlying RPC protocol, e.g.static RpcContext
getServerContext()
已过时。URL
getUrl()
已过时。List<URL>
getUrls()
已过时。boolean
isClientSide()
已过时。boolean
isConsumerSide()
已过时。is consumer side.boolean
isProviderSide()
已过时。is provider side.boolean
isServerSide()
已过时。RpcContext
remove(String key)
已过时。RpcContext
removeAttachment(String key)
已过时。static void
removeContext()
已过时。static void
removeServerContext()
已过时。RpcContext
set(String key, Object value)
已过时。set value.void
setArguments(Object[] arguments)
已过时。RpcContext
setAttachment(String key, String value)
已过时。RpcContext
setAttachments(Map<String,String> attachment)
已过时。void
setFuture(CompletableFuture<?> future)
已过时。RpcContext
setLocalAddress(String host, int port)
已过时。RpcContext
setLocalAddress(InetSocketAddress address)
已过时。void
setMethodName(String methodName)
已过时。void
setParameterTypes(Class<?>[] parameterTypes)
已过时。RpcContext
setRemoteAddress(String host, int port)
已过时。RpcContext
setRemoteAddress(InetSocketAddress address)
已过时。void
setRequest(Object request)
已过时。void
setResponse(Object response)
已过时。void
setUrl(URL url)
已过时。void
setUrls(List<URL> urls)
已过时。
-
-
-
构造器详细资料
-
RpcContext
public RpcContext(RpcContext newRpcContext)
已过时。
-
-
方法详细资料
-
getContext
public static RpcContext getContext()
已过时。
-
getServerContext
public static RpcContext getServerContext()
已过时。
-
removeServerContext
public static void removeServerContext()
已过时。
-
removeContext
public static void removeContext()
已过时。
-
getRequest
public Object getRequest()
已过时。
-
getRequest
public <T> T getRequest(Class<T> clazz)
已过时。
-
setRequest
public void setRequest(Object request)
已过时。
-
getResponse
public Object getResponse()
已过时。Get the response object of the underlying RPC protocol, e.g. HttpServletResponse- 返回:
- null if the underlying protocol doesn't provide support for getting response
-
getResponse
public <T> T getResponse(Class<T> clazz)
已过时。Get the response object of the underlying RPC protocol, e.g. HttpServletResponse- 返回:
- null if the underlying protocol doesn't provide support for getting response or the response is not of the specified type
-
setResponse
public void setResponse(Object response)
已过时。
-
isProviderSide
public boolean isProviderSide()
已过时。is provider side.- 返回:
- provider side.
-
isConsumerSide
public boolean isConsumerSide()
已过时。is consumer side.- 返回:
- consumer side.
-
getUrl
public URL getUrl()
已过时。
-
setUrl
public void setUrl(URL url)
已过时。
-
getMethodName
public String getMethodName()
已过时。
-
setMethodName
public void setMethodName(String methodName)
已过时。
-
getParameterTypes
public Class<?>[] getParameterTypes()
已过时。
-
setParameterTypes
public void setParameterTypes(Class<?>[] parameterTypes)
已过时。
-
getArguments
public Object[] getArguments()
已过时。
-
setArguments
public void setArguments(Object[] arguments)
已过时。
-
setLocalAddress
public RpcContext setLocalAddress(String host, int port)
已过时。
-
getLocalAddress
public InetSocketAddress getLocalAddress()
已过时。get local address.- 返回:
- local address
-
setLocalAddress
public RpcContext setLocalAddress(InetSocketAddress address)
已过时。
-
getLocalAddressString
public String getLocalAddressString()
已过时。
-
getLocalHostName
public String getLocalHostName()
已过时。
-
setRemoteAddress
public RpcContext setRemoteAddress(String host, int port)
已过时。
-
getRemoteAddress
public InetSocketAddress getRemoteAddress()
已过时。
-
setRemoteAddress
public RpcContext setRemoteAddress(InetSocketAddress address)
已过时。
-
getRemoteAddressString
public String getRemoteAddressString()
已过时。
-
getRemoteHostName
public String getRemoteHostName()
已过时。
-
getLocalHost
public String getLocalHost()
已过时。
-
getLocalPort
public int getLocalPort()
已过时。
-
getRemoteHost
public String getRemoteHost()
已过时。
-
getRemotePort
public int getRemotePort()
已过时。
-
setAttachment
public RpcContext setAttachment(String key, String value)
已过时。
-
removeAttachment
public RpcContext removeAttachment(String key)
已过时。
-
setAttachments
public RpcContext setAttachments(Map<String,String> attachment)
已过时。
-
clearAttachments
public void clearAttachments()
已过时。
-
set
public RpcContext set(String key, Object value)
已过时。set value.- 参数:
key
-value
-- 返回:
- context
-
remove
public RpcContext remove(String key)
已过时。
-
isServerSide
@Deprecated public boolean isServerSide()
已过时。
-
isClientSide
@Deprecated public boolean isClientSide()
已过时。
-
asyncCall
public <T> Future<T> asyncCall(Callable<T> callable)
已过时。Async invocation. Timeout will be handled even ifFuture.get()
is not called.- 参数:
callable
-- 返回:
- get the return result from
future.get()
-
asyncCall
public void asyncCall(Runnable runnable)
已过时。one way async call, send request only, and result is not required- 参数:
runnable
-
-
getFuture
public <T> Future<T> getFuture()
已过时。
-
setFuture
public void setFuture(CompletableFuture<?> future)
已过时。
-
-