Class NettyHelper


  • public class NettyHelper
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static io.netty.channel.ChannelInboundHandlerAdapter DEFAULT_INBOUND_HANDLER  
    • Constructor Summary

      Constructors 
      Constructor Description
      NettyHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static io.netty.channel.EventLoopGroup createEventLoopGroup​(java.lang.String prefix, int nThreads)  
      static java.lang.Class<? extends io.netty.channel.socket.SocketChannel> getClientSocketChannel()  
      static java.lang.Class<? extends io.netty.channel.socket.ServerSocketChannel> getServerSocketChannel()  
      static io.netty.bootstrap.Bootstrap newClientBootstrap​(io.netty.channel.EventLoopGroup eventLoopGroup, io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel> channelInitializer)  
      static io.netty.bootstrap.ServerBootstrap newServerBootstrap​(io.netty.channel.EventLoopGroup eventLoopGroup, io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel> channelInitializer)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_INBOUND_HANDLER

        public static final io.netty.channel.ChannelInboundHandlerAdapter DEFAULT_INBOUND_HANDLER
    • Constructor Detail

      • NettyHelper

        public NettyHelper()
    • Method Detail

      • newServerBootstrap

        public static io.netty.bootstrap.ServerBootstrap newServerBootstrap​(io.netty.channel.EventLoopGroup eventLoopGroup,
                                                                            io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel> channelInitializer)
      • newClientBootstrap

        public static io.netty.bootstrap.Bootstrap newClientBootstrap​(io.netty.channel.EventLoopGroup eventLoopGroup,
                                                                      io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel> channelInitializer)
      • getClientSocketChannel

        public static java.lang.Class<? extends io.netty.channel.socket.SocketChannel> getClientSocketChannel()
      • getServerSocketChannel

        public static java.lang.Class<? extends io.netty.channel.socket.ServerSocketChannel> getServerSocketChannel()
      • createEventLoopGroup

        public static io.netty.channel.EventLoopGroup createEventLoopGroup​(java.lang.String prefix,
                                                                           int nThreads)