|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alipay.remoting.RemotingContext
public class RemotingContext
Wrap the ChannelHandlerContext.
| Constructor Summary | |
|---|---|
RemotingContext(io.netty.channel.ChannelHandlerContext ctx)
Constructor. |
|
RemotingContext(io.netty.channel.ChannelHandlerContext ctx,
boolean serverSide)
Constructor. |
|
RemotingContext(io.netty.channel.ChannelHandlerContext ctx,
boolean serverSide,
ConcurrentHashMap<String,UserProcessor<?>> userProcessors)
Constructor. |
|
RemotingContext(io.netty.channel.ChannelHandlerContext ctx,
InvokeContext invokeContext,
boolean serverSide,
ConcurrentHashMap<String,UserProcessor<?>> userProcessors)
Constructor. |
|
| Method Summary | |
|---|---|
long |
getArriveTimestamp()
Getter method for property arriveTimestamp. |
io.netty.channel.ChannelHandlerContext |
getChannelContext()
Get the channel handler context. |
Connection |
getConnection()
Get connection from channel |
InvokeContext |
getInvokeContext()
Getter method for property invokeContext. |
int |
getTimeout()
Getter method for property timeout. |
UserProcessor<?> |
getUserProcessor(String className)
Get user processor for class name. |
boolean |
isRequestTimeout()
whether this request already timeout |
boolean |
isServerSide()
The server side |
boolean |
isTimeoutDiscard()
|
void |
setArriveTimestamp(long arriveTimestamp)
Setter method for property arriveTimestamp. |
void |
setChannelContext(io.netty.channel.ChannelHandlerContext ctx)
Set the channel handler context. |
void |
setRpcCommandType(int rpcCommandType)
Setter method for property rpcCommandType. |
void |
setTimeout(int timeout)
Setter method for property timeout. |
RemotingContext |
setTimeoutDiscard(boolean failFastEnabled)
|
io.netty.channel.ChannelFuture |
writeAndFlush(RemotingCommand msg)
Wrap the writeAndFlush method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemotingContext(io.netty.channel.ChannelHandlerContext ctx)
ctx -
public RemotingContext(io.netty.channel.ChannelHandlerContext ctx,
boolean serverSide)
ctx - serverSide -
public RemotingContext(io.netty.channel.ChannelHandlerContext ctx,
boolean serverSide,
ConcurrentHashMap<String,UserProcessor<?>> userProcessors)
ctx - serverSide - userProcessors -
public RemotingContext(io.netty.channel.ChannelHandlerContext ctx,
InvokeContext invokeContext,
boolean serverSide,
ConcurrentHashMap<String,UserProcessor<?>> userProcessors)
ctx - invokeContext - serverSide - userProcessors - | Method Detail |
|---|
public io.netty.channel.ChannelFuture writeAndFlush(RemotingCommand msg)
msg -
public boolean isRequestTimeout()
public boolean isServerSide()
public UserProcessor<?> getUserProcessor(String className)
className -
public Connection getConnection()
public io.netty.channel.ChannelHandlerContext getChannelContext()
public void setChannelContext(io.netty.channel.ChannelHandlerContext ctx)
ctx - public InvokeContext getInvokeContext()
public void setArriveTimestamp(long arriveTimestamp)
arriveTimestamp - value to be assigned to property arriveTimestamppublic long getArriveTimestamp()
public void setTimeout(int timeout)
timeout - value to be assigned to property timeoutpublic int getTimeout()
public void setRpcCommandType(int rpcCommandType)
rpcCommandType - value to be assigned to property rpcCommandTypepublic boolean isTimeoutDiscard()
public RemotingContext setTimeoutDiscard(boolean failFastEnabled)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||