public class NettyGrpcServerFactory extends AbstractGrpcServerFactory<io.grpc.netty.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 static void |
configureAcceptedClientCertificates(GrpcServerProperties.Security security,
io.netty.handler.ssl.SslContextBuilder sslContextBuilder)
Configures the client certificates accepted by the ssl context.
|
protected void |
configureConnectionLimits(io.grpc.netty.NettyServerBuilder builder)
Configures the keep alive options that should be used by the server.
|
protected void |
configureKeepAlive(io.grpc.netty.NettyServerBuilder builder)
Configures the keep alive options that should be used by the server.
|
protected void |
configureSecurity(io.grpc.netty.NettyServerBuilder builder)
Configures the security options that should be used by the server.
|
protected io.grpc.netty.NettyServerBuilder |
newServerBuilder()
Creates a new server builder.
|
protected static io.netty.handler.ssl.SslContextBuilder |
newServerSslContextBuilder(GrpcServerProperties.Security security)
Creates a new server ssl context 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, getAddress, getPortpublic NettyGrpcServerFactory(GrpcServerProperties properties, List<GrpcServerConfigurer> serverConfigurers)
properties - The properties used to configure the server.serverConfigurers - The server configurers to use. Can be empty.protected io.grpc.netty.NettyServerBuilder newServerBuilder()
AbstractGrpcServerFactorynewServerBuilder in class AbstractGrpcServerFactory<io.grpc.netty.NettyServerBuilder>protected void configureConnectionLimits(io.grpc.netty.NettyServerBuilder builder)
AbstractGrpcServerFactoryconfigureConnectionLimits in class AbstractGrpcServerFactory<io.grpc.netty.NettyServerBuilder>builder - The server builder to configure.protected void configureKeepAlive(io.grpc.netty.NettyServerBuilder builder)
AbstractGrpcServerFactoryconfigureKeepAlive in class AbstractGrpcServerFactory<io.grpc.netty.NettyServerBuilder>builder - The server builder to configure.protected void configureSecurity(io.grpc.netty.NettyServerBuilder builder)
AbstractGrpcServerFactoryconfigureSecurity in class AbstractGrpcServerFactory<io.grpc.netty.NettyServerBuilder>builder - The server builder to configure.protected static io.netty.handler.ssl.SslContextBuilder newServerSslContextBuilder(GrpcServerProperties.Security security)
security - The security configuration to use.protected static void configureAcceptedClientCertificates(GrpcServerProperties.Security security, io.netty.handler.ssl.SslContextBuilder sslContextBuilder)
security - The security configuration to use.sslContextBuilder - The ssl context builder to configure.protected static io.netty.handler.ssl.ClientAuth of(ClientAuth clientAuth)
clientAuth - The client auth option to convert.