public class ShadedNettyGrpcServerFactory extends AbstractGrpcServerFactory<io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder>
properties, serverConfigurers
Constructor and Description |
---|
ShadedNettyGrpcServerFactory(GrpcServerProperties properties,
List<GrpcServerConfigurer> serverConfigurers)
Creates a new shaded netty server factory with the given properties.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
configureAcceptedClientCertificates(GrpcServerProperties.Security security,
io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder sslContextBuilder)
Configures the client certificates accepted by the ssl context.
|
protected void |
configureConnectionLimits(io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder builder)
Configures the keep alive options that should be used by the server.
|
protected void |
configureKeepAlive(io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder builder)
Configures the keep alive options that should be used by the server.
|
protected void |
configureSecurity(io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder builder)
Configures the security options that should be used by the server.
|
protected io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder |
newServerBuilder()
Creates a new server builder.
|
protected static io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder |
newServerSslContextBuilder(GrpcServerProperties.Security security)
Creates a new server ssl context builder.
|
protected static io.grpc.netty.shaded.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, getPort
public ShadedNettyGrpcServerFactory(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.shaded.io.grpc.netty.NettyServerBuilder newServerBuilder()
AbstractGrpcServerFactory
newServerBuilder
in class AbstractGrpcServerFactory<io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder>
protected void configureConnectionLimits(io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder builder)
AbstractGrpcServerFactory
configureConnectionLimits
in class AbstractGrpcServerFactory<io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder>
builder
- The server builder to configure.protected void configureKeepAlive(io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder builder)
AbstractGrpcServerFactory
configureKeepAlive
in class AbstractGrpcServerFactory<io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder>
builder
- The server builder to configure.protected void configureSecurity(io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder builder)
AbstractGrpcServerFactory
configureSecurity
in class AbstractGrpcServerFactory<io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder>
builder
- The server builder to configure.protected static io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder newServerSslContextBuilder(GrpcServerProperties.Security security)
security
- The security configuration to use.protected static void configureAcceptedClientCertificates(GrpcServerProperties.Security security, io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder sslContextBuilder)
security
- The security configuration to use.sslContextBuilder
- The ssl context builder to configure.protected static io.grpc.netty.shaded.io.netty.handler.ssl.ClientAuth of(ClientAuth clientAuth)
clientAuth
- The client auth option to convert.