Package io.servicetalk.grpc.netty
Class GrpcServers
- java.lang.Object
-
- io.servicetalk.grpc.netty.GrpcServers
-
public final class GrpcServers extends java.lang.Object
A factory to create gRPC servers.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GrpcServerBuilder
forAddress(java.net.SocketAddress socketAddress)
NewGrpcServerBuilder
instance.static GrpcServerBuilder
forPort(int port)
NewGrpcServerBuilder
instance.
-
-
-
Method Detail
-
forPort
public static GrpcServerBuilder forPort(int port)
NewGrpcServerBuilder
instance.- Parameters:
port
- the listen port for the server.- Returns:
- a new builder.
-
forAddress
public static GrpcServerBuilder forAddress(java.net.SocketAddress socketAddress)
NewGrpcServerBuilder
instance.- Parameters:
socketAddress
- the listen address for the server.- Returns:
- a new builder.
-
-