public final class GrpcServers
extends Object
| Modifier and Type | Method and Description |
|---|---|
static GrpcServerBuilder |
forAddress(SocketAddress address)
New
GrpcServerBuilder instance. |
static GrpcServerBuilder |
forPort(int port)
New
GrpcServerBuilder instance. |
public static GrpcServerBuilder forPort(int port)
GrpcServerBuilder instance.
The returned builder can be customized using GrpcProviders.GrpcServerBuilderProvider.
port - the listen port for the serverGrpcProviders.GrpcServerBuilderProviderpublic static GrpcServerBuilder forAddress(SocketAddress address)
GrpcServerBuilder instance.
The returned builder can be customized using GrpcProviders.GrpcServerBuilderProvider.
address - the listen SocketAddress for the serverGrpcProviders.GrpcServerBuilderProvider