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@Singleton
component means the component can provide a Netty-basedServer
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NettyServerModule
bindingTo(java.net.SocketAddress socketAddress)
A module that binds tosocketAddress
.static NettyServerModule
bindingToPort(int port)
A module that binds toport
on the wildcard address.
-
-
-
Method Detail
-
bindingToPort
public static NettyServerModule bindingToPort(int port)
A module that binds toport
on the wildcard address.
-
bindingTo
public static NettyServerModule bindingTo(java.net.SocketAddress socketAddress)
A module that binds tosocketAddress
.
-
-