Class NettyServerModule

java.lang.Object
dagger.grpc.server.NettyServerModule

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

    • bindingToPort

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

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