public class DefaultBizContext extends Object implements BizContext
| Constructor and Description |
|---|
DefaultBizContext(RemotingContext remotingCtx)
Constructor with RemotingContext
|
| Modifier and Type | Method and Description |
|---|---|
String |
get(String key)
get value
|
long |
getArriveTimestamp()
get the arrive time stamp
|
int |
getClientTimeout()
get the timeout value from rpc client.
|
Connection |
getConnection()
get the connection of this request
|
InvokeContext |
getInvokeContext()
get invoke context.
|
String |
getRemoteAddress()
get remote address
|
String |
getRemoteHost()
get remote host ip
|
int |
getRemotePort()
get remote port
|
protected RemotingContext |
getRemotingCtx()
get remoting context
|
boolean |
isRequestTimeout()
check whether request already timeout
|
void |
put(String key,
String value)
put a key and value
|
public DefaultBizContext(RemotingContext remotingCtx)
remotingCtx - protected RemotingContext getRemotingCtx()
public String getRemoteAddress()
BizContextgetRemoteAddress in interface BizContextBizContext.getRemoteAddress()public String getRemoteHost()
BizContextgetRemoteHost in interface BizContextBizContext.getRemoteHost()public int getRemotePort()
BizContextgetRemotePort in interface BizContextBizContext.getRemotePort()public Connection getConnection()
BizContextgetConnection in interface BizContextBizContext.getConnection()public boolean isRequestTimeout()
BizContextisRequestTimeout in interface BizContextBizContext.isRequestTimeout()public int getClientTimeout()
getClientTimeout in interface BizContextpublic long getArriveTimestamp()
getArriveTimestamp in interface BizContextpublic void put(String key, String value)
BizContextput in interface BizContextBizContext.put(java.lang.String, java.lang.String)public String get(String key)
BizContextget in interface BizContextkey - target keyBizContext.get(java.lang.String)public InvokeContext getInvokeContext()
BizContextgetInvokeContext in interface BizContextBizContext.getInvokeContext()Copyright © 2024. All rights reserved.