Class NettyServerModule


  • @Module(includes=ServerModule.class)
    public final class NettyServerModule
    extends java.lang.Object
    Installing this module into a @Singleton component means the component can provide a Netty-based Server.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static NettyServerModule bindingTo​(java.net.SocketAddress socketAddress)
      A module that binds to socketAddress.
      static NettyServerModule bindingToPort​(int port)
      A module that binds to port on the wildcard address.
      • Methods inherited from class java.lang.Object

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

      • bindingToPort

        public static NettyServerModule bindingToPort​(int port)
        A module that binds to port on the wildcard address.
      • bindingTo

        public static NettyServerModule bindingTo​(java.net.SocketAddress socketAddress)
        A module that binds to socketAddress.