public class DefaultBizContext extends Object implements BizContext
| 构造器和说明 |
|---|
DefaultBizContext(RemotingContext remotingCtx)
Constructor with RemotingContext
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 BizContextBizContext.getRemoteAddress()public String getRemoteHost()
BizContextgetRemoteHost 在接口中 BizContextBizContext.getRemoteHost()public int getRemotePort()
BizContextgetRemotePort 在接口中 BizContextBizContext.getRemotePort()public Connection getConnection()
BizContextgetConnection 在接口中 BizContextBizContext.getConnection()public boolean isRequestTimeout()
BizContextisRequestTimeout 在接口中 BizContextBizContext.isRequestTimeout()public int getClientTimeout()
getClientTimeout 在接口中 BizContextpublic long getArriveTimestamp()
getArriveTimestamp 在接口中 BizContextpublic void put(String key, String value)
BizContextput 在接口中 BizContextBizContext.put(java.lang.String, java.lang.String)public String get(String key)
BizContextget 在接口中 BizContextkey - target keyBizContext.get(java.lang.String)public InvokeContext getInvokeContext()
BizContextgetInvokeContext 在接口中 BizContextBizContext.getInvokeContext()Copyright © 2020. All rights reserved.