@Module(includes=ServerModule.class) public final class NettyServerModule extends java.lang.Object
@Singleton
component means the component can
provide a Netty-based Server
.Modifier and Type | Method and 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. |
public static NettyServerModule bindingToPort(int port)
port
on the wildcard address.public static NettyServerModule bindingTo(java.net.SocketAddress socketAddress)
socketAddress
.