public class NettyGrpcServerFactory extends AbstractGrpcServerFactory<NettyServerBuilder>
properties, serverConfigurers
Constructor and Description |
---|
NettyGrpcServerFactory(GrpcServerProperties properties,
List<GrpcServerConfigurer> serverConfigurers)
Creates a new netty server factory with the given properties.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureKeepAlive(NettyServerBuilder builder)
Configures the keep alive options that should be used by the server.
|
protected void |
configureSecurity(NettyServerBuilder builder)
Configures the security options that should be used by the server.
|
protected NettyServerBuilder |
newServerBuilder()
Creates a new server builder.
|
protected static io.netty.handler.ssl.ClientAuth |
of(ClientAuth clientAuth)
Converts the given client auth option to netty's client auth.
|
addService, configure, configureLimits, configureServices, createServer, destroy, getAddress, getPort, toCheckedFile
public NettyGrpcServerFactory(GrpcServerProperties properties, List<GrpcServerConfigurer> serverConfigurers)
properties
- The properties used to configure the server.serverConfigurers
- The server configurers to use. Can be empty.protected NettyServerBuilder newServerBuilder()
AbstractGrpcServerFactory
newServerBuilder
in class AbstractGrpcServerFactory<NettyServerBuilder>
protected void configureKeepAlive(NettyServerBuilder builder)
AbstractGrpcServerFactory
configureKeepAlive
in class AbstractGrpcServerFactory<NettyServerBuilder>
builder
- The server builder to configure.protected void configureSecurity(NettyServerBuilder builder)
AbstractGrpcServerFactory
configureSecurity
in class AbstractGrpcServerFactory<NettyServerBuilder>
builder
- The server builder to configure.protected static io.netty.handler.ssl.ClientAuth of(ClientAuth clientAuth)
clientAuth
- The client auth option to convert.