Package alluxio.network.netty
Class NettyRPCContext
- java.lang.Object
-
- alluxio.network.netty.NettyRPCContext
-
public final class NettyRPCContext extends java.lang.Object
Context to send a netty RPC.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NettyRPCContext
defaults()
io.netty.channel.Channel
getChannel()
long
getTimeoutMs()
NettyRPCContext
setChannel(io.netty.channel.Channel channel)
NettyRPCContext
setTimeout(long timeoutMs)
-
-
-
Method Detail
-
defaults
public static NettyRPCContext defaults()
- Returns:
- the default context
-
getChannel
public io.netty.channel.Channel getChannel()
- Returns:
- the channel
-
getTimeoutMs
public long getTimeoutMs()
- Returns:
- the timeout
-
setChannel
public NettyRPCContext setChannel(io.netty.channel.Channel channel)
- Parameters:
channel
- the channel- Returns:
- updated context
-
setTimeout
public NettyRPCContext setTimeout(long timeoutMs)
- Parameters:
timeoutMs
- the timeout in ms- Returns:
- updated context
-
-