public interface GrpcServerFactory
Modifier and Type | Method and Description |
---|---|
void |
addService(GrpcServiceDefinition service)
Adds the given grpc service definition to this factory.
|
Server |
createServer()
Creates a new grpc server with the stored options.
|
void |
destroy()
Destroys this factory.
|
String |
getAddress()
Gets the IP address the created server will be bound to.
|
int |
getPort()
Gets the local port the created server will use to listen to requests.
|
Server createServer()
String getAddress()
int getPort()
void addService(GrpcServiceDefinition service)
Note: Adding a service does not effect servers that have already been created.
service
- The service to add to the grpc server.void destroy()