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 |
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, toCheckedFilepublic 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()
AbstractGrpcServerFactorynewServerBuilder in class AbstractGrpcServerFactory<NettyServerBuilder>protected void configureSecurity(NettyServerBuilder builder)
AbstractGrpcServerFactoryconfigureSecurity 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.