Package dagger.grpc.server
Class NettyServerModule
- java.lang.Object
-
- dagger.grpc.server.NettyServerModule
-
@Module(includes=ServerModule.class) public final class NettyServerModule extends java.lang.Object
Installing this module into a@Singletoncomponent means the component can provide a Netty-basedServer.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NettyServerModulebindingTo(java.net.SocketAddress socketAddress)A module that binds tosocketAddress.static NettyServerModulebindingToPort(int port)A module that binds toporton the wildcard address.
-
-
-
Method Detail
-
bindingToPort
public static NettyServerModule bindingToPort(int port)
A module that binds toporton the wildcard address.
-
bindingTo
public static NettyServerModule bindingTo(java.net.SocketAddress socketAddress)
A module that binds tosocketAddress.
-
-