Class NettyRPCContext


  • public final class NettyRPCContext
    extends java.lang.Object
    Context to send a netty RPC.
    • 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