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