public class InProcessGrpcServerFactory extends AbstractGrpcServerFactory<io.grpc.inprocess.InProcessServerBuilder>
properties, serverConfigurers
Constructor and Description |
---|
InProcessGrpcServerFactory(java.lang.String name,
GrpcServerProperties properties)
Creates a new in process server factory with the given properties.
|
InProcessGrpcServerFactory(java.lang.String name,
GrpcServerProperties properties,
java.util.List<GrpcServerConfigurer> serverConfigurers)
Creates a new in process server factory with the given properties.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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.
|
protected io.grpc.inprocess.InProcessServerBuilder |
newServerBuilder()
Creates a new server builder.
|
addService, configure, configureLimits, configureSecurity, configureServices, createServer, destroy, toCheckedFile
public InProcessGrpcServerFactory(java.lang.String name, GrpcServerProperties properties)
name
- The name of the in process server.properties
- The properties used to configure the server.public InProcessGrpcServerFactory(java.lang.String name, GrpcServerProperties properties, java.util.List<GrpcServerConfigurer> serverConfigurers)
name
- The name of the in process server.properties
- The properties used to configure the server.serverConfigurers
- The server configurers to use. Can be empty.protected io.grpc.inprocess.InProcessServerBuilder newServerBuilder()
AbstractGrpcServerFactory
newServerBuilder
in class AbstractGrpcServerFactory<io.grpc.inprocess.InProcessServerBuilder>
public java.lang.String getAddress()
GrpcServerFactory
getAddress
in interface GrpcServerFactory
getAddress
in class AbstractGrpcServerFactory<io.grpc.inprocess.InProcessServerBuilder>
public int getPort()
GrpcServerFactory
getPort
in interface GrpcServerFactory
getPort
in class AbstractGrpcServerFactory<io.grpc.inprocess.InProcessServerBuilder>