类 RpcContext
- java.lang.Object
-
- com.alibaba.dubbo.rpc.RpcContext
-
@Deprecated public class RpcContext extends Object
已过时。
-
-
构造器概要
构造器 构造器 说明 RpcContext(org.apache.dubbo.rpc.RpcContext newRpcContext)已过时。
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 voidasyncCall(Runnable runnable)已过时。one way async call, send request only, and result is not required<T> Future<T>asyncCall(Callable<T> callable)已过时。Async invocation.voidclearAttachments()已过时。Map<String,Object>get()已过时。get values.Objectget(String key)已过时。Object[]getArguments()已过时。StringgetAttachment(String key)已过时。Map<String,String>getAttachments()已过时。static RpcContextgetContext()已过时。<T> Future<T>getFuture()已过时。InetSocketAddressgetLocalAddress()已过时。get local address.StringgetLocalAddressString()已过时。StringgetLocalHost()已过时。StringgetLocalHostName()已过时。intgetLocalPort()已过时。StringgetMethodName()已过时。Class<?>[]getParameterTypes()已过时。InetSocketAddressgetRemoteAddress()已过时。StringgetRemoteAddressString()已过时。StringgetRemoteHost()已过时。StringgetRemoteHostName()已过时。intgetRemotePort()已过时。ObjectgetRequest()已过时。<T> TgetRequest(Class<T> clazz)已过时。ObjectgetResponse()已过时。Get the response object of the underlying RPC protocol, e.g.<T> TgetResponse(Class<T> clazz)已过时。Get the response object of the underlying RPC protocol, e.g.static RpcContextgetServerContext()已过时。URLgetUrl()已过时。List<URL>getUrls()已过时。booleanisClientSide()已过时。booleanisConsumerSide()已过时。is consumer side.booleanisProviderSide()已过时。is provider side.booleanisServerSide()已过时。RpcContextremove(String key)已过时。RpcContextremoveAttachment(String key)已过时。static voidremoveContext()已过时。static voidremoveServerContext()已过时。RpcContextset(String key, Object value)已过时。set value.voidsetArguments(Object[] arguments)已过时。RpcContextsetAttachment(String key, String value)已过时。RpcContextsetAttachments(Map<String,String> attachment)已过时。voidsetFuture(CompletableFuture<?> future)已过时。RpcContextsetLocalAddress(String host, int port)已过时。RpcContextsetLocalAddress(InetSocketAddress address)已过时。voidsetMethodName(String methodName)已过时。voidsetParameterTypes(Class<?>[] parameterTypes)已过时。RpcContextsetRemoteAddress(String host, int port)已过时。RpcContextsetRemoteAddress(InetSocketAddress address)已过时。voidsetRequest(Object request)已过时。voidsetResponse(Object response)已过时。voidsetUrl(URL url)已过时。voidsetUrls(List<URL> urls)已过时。
-
-
-
方法详细资料
-
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)
已过时。
-
-