@Deprecated public class RpcContext extends Object
| 构造器和说明 |
|---|
RpcContext(org.apache.dubbo.rpc.RpcContext newRpcContext)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Future<T> |
asyncCall(Callable<T> callable)
已过时。
Async invocation.
|
void |
asyncCall(Runnable runnable)
已过时。
one way async call, send request only, and result is not required
|
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(InetSocketAddress address)
已过时。
|
RpcContext |
setLocalAddress(String host,
int port)
已过时。
|
void |
setMethodName(String methodName)
已过时。
|
void |
setParameterTypes(Class<?>[] parameterTypes)
已过时。
|
RpcContext |
setRemoteAddress(InetSocketAddress address)
已过时。
|
RpcContext |
setRemoteAddress(String host,
int port)
已过时。
|
void |
setRequest(Object request)
已过时。
|
void |
setResponse(Object response)
已过时。
|
void |
setUrl(URL url)
已过时。
|
void |
setUrls(List<URL> urls)
已过时。
|
public static RpcContext getContext()
public static RpcContext getServerContext()
public static void removeServerContext()
public static void removeContext()
public Object getRequest()
public <T> T getRequest(Class<T> clazz)
public void setRequest(Object request)
public Object getResponse()
public <T> T getResponse(Class<T> clazz)
public void setResponse(Object response)
public boolean isProviderSide()
public boolean isConsumerSide()
public URL getUrl()
public void setUrl(URL url)
public String getMethodName()
public void setMethodName(String methodName)
public Class<?>[] getParameterTypes()
public void setParameterTypes(Class<?>[] parameterTypes)
public Object[] getArguments()
public void setArguments(Object[] arguments)
public RpcContext setLocalAddress(String host, int port)
public InetSocketAddress getLocalAddress()
public RpcContext setLocalAddress(InetSocketAddress address)
public String getLocalAddressString()
public String getLocalHostName()
public RpcContext setRemoteAddress(String host, int port)
public InetSocketAddress getRemoteAddress()
public RpcContext setRemoteAddress(InetSocketAddress address)
public String getRemoteAddressString()
public String getRemoteHostName()
public String getLocalHost()
public int getLocalPort()
public String getRemoteHost()
public int getRemotePort()
public RpcContext setAttachment(String key, String value)
public RpcContext removeAttachment(String key)
public RpcContext setAttachments(Map<String,String> attachment)
public void clearAttachments()
public RpcContext set(String key, Object value)
key - value - public RpcContext remove(String key)
@Deprecated public boolean isServerSide()
@Deprecated public boolean isClientSide()
public <T> Future<T> asyncCall(Callable<T> callable)
Future.get() is not called.callable - future.get()public void asyncCall(Runnable runnable)
runnable - public <T> Future<T> getFuture()
public void setFuture(CompletableFuture<?> future)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.