public class InProcessGrpcServerFactory extends AbstractGrpcServerFactory<InProcessServerBuilder>
properties, serverConfigurers
Constructor and Description |
---|
InProcessGrpcServerFactory(GrpcServerProperties properties)
Creates a new in process server factory with the given properties.
|
InProcessGrpcServerFactory(GrpcServerProperties properties,
List<GrpcServerConfigurer> serverConfigurers)
Creates a new in process server factory with the given properties.
|
InProcessGrpcServerFactory(String name,
GrpcServerProperties properties)
Creates a new in process server factory with the given properties.
|
InProcessGrpcServerFactory(String name,
GrpcServerProperties properties,
List<GrpcServerConfigurer> serverConfigurers)
Creates a new in process server factory with the given properties.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureSecurity(InProcessServerBuilder builder)
Configures the security options that should be used by the server.
|
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 InProcessServerBuilder |
newServerBuilder()
Creates a new server builder.
|
addService, configure, configureConnectionLimits, configureKeepAlive, configureLimits, configureServices, createServer
public InProcessGrpcServerFactory(GrpcServerProperties properties)
properties
- The properties used to configure the server.public InProcessGrpcServerFactory(GrpcServerProperties properties, List<GrpcServerConfigurer> serverConfigurers)
properties
- The properties used to configure the server.serverConfigurers
- The server configurers to use. Can be empty.public InProcessGrpcServerFactory(String name, GrpcServerProperties properties)
name
- The name of the in process server.properties
- The properties used to configure the server.public InProcessGrpcServerFactory(String name, GrpcServerProperties properties, 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 InProcessServerBuilder newServerBuilder()
AbstractGrpcServerFactory
newServerBuilder
in class AbstractGrpcServerFactory<InProcessServerBuilder>
protected void configureSecurity(InProcessServerBuilder builder)
AbstractGrpcServerFactory
configureSecurity
in class AbstractGrpcServerFactory<InProcessServerBuilder>
builder
- The server builder to configure.public String getAddress()
GrpcServerFactory
getAddress
in interface GrpcServerFactory
getAddress
in class AbstractGrpcServerFactory<InProcessServerBuilder>
public int getPort()
GrpcServerFactory
getPort
in interface GrpcServerFactory
getPort
in class AbstractGrpcServerFactory<InProcessServerBuilder>