@Deprecated public class RpcContext extends Object
| Constructor and Description |
|---|
RpcContext(RpcContext newRpcContext)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Future<T> |
asyncCall(Callable<T> callable)
Deprecated.
Async invocation.
|
void |
asyncCall(Runnable runnable)
Deprecated.
one way async call, send request only, and result is not required
|
void |
clearAttachments()
Deprecated.
|
Map<String,Object> |
get()
Deprecated.
get values.
|
Object |
get(String key)
Deprecated.
|
Object[] |
getArguments()
Deprecated.
|
String |
getAttachment(String key)
Deprecated.
|
Map<String,String> |
getAttachments()
Deprecated.
|
static RpcContext |
getContext()
Deprecated.
|
<T> Future<T> |
getFuture()
Deprecated.
|
InetSocketAddress |
getLocalAddress()
Deprecated.
get local address.
|
String |
getLocalAddressString()
Deprecated.
|
String |
getLocalHost()
Deprecated.
|
String |
getLocalHostName()
Deprecated.
|
int |
getLocalPort()
Deprecated.
|
String |
getMethodName()
Deprecated.
|
Class<?>[] |
getParameterTypes()
Deprecated.
|
InetSocketAddress |
getRemoteAddress()
Deprecated.
|
String |
getRemoteAddressString()
Deprecated.
|
String |
getRemoteHost()
Deprecated.
|
String |
getRemoteHostName()
Deprecated.
|
int |
getRemotePort()
Deprecated.
|
Object |
getRequest()
Deprecated.
|
<T> T |
getRequest(Class<T> clazz)
Deprecated.
|
Object |
getResponse()
Deprecated.
Get the response object of the underlying RPC protocol, e.g.
|
<T> T |
getResponse(Class<T> clazz)
Deprecated.
Get the response object of the underlying RPC protocol, e.g.
|
static RpcContext |
getServerContext()
Deprecated.
|
URL |
getUrl()
Deprecated.
|
List<URL> |
getUrls()
Deprecated.
|
boolean |
isClientSide()
Deprecated.
|
boolean |
isConsumerSide()
Deprecated.
is consumer side.
|
boolean |
isProviderSide()
Deprecated.
is provider side.
|
boolean |
isServerSide()
Deprecated.
|
RpcContext |
remove(String key)
Deprecated.
|
RpcContext |
removeAttachment(String key)
Deprecated.
|
static void |
removeContext()
Deprecated.
|
static void |
removeServerContext()
Deprecated.
|
RpcContext |
set(String key,
Object value)
Deprecated.
set value.
|
void |
setArguments(Object[] arguments)
Deprecated.
|
RpcContext |
setAttachment(String key,
String value)
Deprecated.
|
RpcContext |
setAttachments(Map<String,String> attachment)
Deprecated.
|
void |
setFuture(CompletableFuture<?> future)
Deprecated.
|
RpcContext |
setLocalAddress(InetSocketAddress address)
Deprecated.
|
RpcContext |
setLocalAddress(String host,
int port)
Deprecated.
|
void |
setMethodName(String methodName)
Deprecated.
|
void |
setParameterTypes(Class<?>[] parameterTypes)
Deprecated.
|
RpcContext |
setRemoteAddress(InetSocketAddress address)
Deprecated.
|
RpcContext |
setRemoteAddress(String host,
int port)
Deprecated.
|
void |
setRequest(Object request)
Deprecated.
|
void |
setResponse(Object response)
Deprecated.
|
void |
setUrl(URL url)
Deprecated.
|
void |
setUrls(List<URL> urls)
Deprecated.
|
public RpcContext(RpcContext newRpcContext)
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–2020 The Apache Software Foundation. All rights reserved.