@Configuration(proxyBeanMethods=false) @ConditionalOnMissingBean(value={GrpcServerFactory.class,GrpcServerLifecycle.class}) @AutoConfigureAfter(value=GrpcServerAutoConfiguration.class) public class GrpcServerFactoryAutoConfiguration extends Object
GrpcServerFactorys and GrpcServerLifecycles, if the
developer hasn't specified their own variant.| Constructor and Description |
|---|
GrpcServerFactoryAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
InProcessGrpcServerFactory |
inProcessGrpcServerFactory(GrpcServerProperties properties,
GrpcServiceDiscoverer serviceDiscoverer)
Creates a GrpcServerFactory using the in-process-server, if a name is specified.
|
GrpcServerLifecycle |
inProcessGrpcServerLifecycle(InProcessGrpcServerFactory factory)
The server lifecycle bean for the in-process-server.
|
NettyGrpcServerFactory |
nettyGrpcServerFactory(GrpcServerProperties properties,
GrpcServiceDiscoverer serviceDiscoverer,
List<GrpcServerConfigurer> serverConfigurers)
Creates a GrpcServerFactory using the non-shaded netty.
|
GrpcServerLifecycle |
nettyGrpcServerLifecycle(NettyGrpcServerFactory factory)
The server lifecycle bean for netty based server.
|
ShadedNettyGrpcServerFactory |
shadedNettyGrpcServerFactory(GrpcServerProperties properties,
GrpcServiceDiscoverer serviceDiscoverer,
List<GrpcServerConfigurer> serverConfigurers)
Creates a GrpcServerFactory using the shaded netty.
|
GrpcServerLifecycle |
shadedNettyGrpcServerLifecycle(ShadedNettyGrpcServerFactory factory)
The server lifecycle bean for a shaded netty based server.
|
@ConditionalOnClass(name={"io.grpc.netty.shaded.io.netty.channel.Channel","io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder"}) @Conditional(value=ConditionalOnInterprocessServer.class) @Bean public ShadedNettyGrpcServerFactory shadedNettyGrpcServerFactory(GrpcServerProperties properties, GrpcServiceDiscoverer serviceDiscoverer, List<GrpcServerConfigurer> serverConfigurers)
properties - The properties used to configure the server.serviceDiscoverer - The discoverer used to identify the services that should be served.serverConfigurers - The server configurers that contain additional configuration for the server.@ConditionalOnBean(value=ShadedNettyGrpcServerFactory.class) @Bean public GrpcServerLifecycle shadedNettyGrpcServerLifecycle(ShadedNettyGrpcServerFactory factory)
factory - The factory used to create the lifecycle.@ConditionalOnMissingBean(value=ShadedNettyGrpcServerFactory.class) @Conditional(value=ConditionalOnInterprocessServer.class) @ConditionalOnClass(name={"io.netty.channel.Channel","io.grpc.netty.NettyServerBuilder"}) @Bean public NettyGrpcServerFactory nettyGrpcServerFactory(GrpcServerProperties properties, GrpcServiceDiscoverer serviceDiscoverer, List<GrpcServerConfigurer> serverConfigurers)
properties - The properties used to configure the server.serviceDiscoverer - The discoverer used to identify the services that should be served.serverConfigurers - The server configurers that contain additional configuration for the server.@ConditionalOnBean(value=NettyGrpcServerFactory.class) @Bean public GrpcServerLifecycle nettyGrpcServerLifecycle(NettyGrpcServerFactory factory)
factory - The factory used to create the lifecycle.@ConditionalOnProperty(prefix="grpc.server", name="in-process-name") @Bean public InProcessGrpcServerFactory inProcessGrpcServerFactory(GrpcServerProperties properties, GrpcServiceDiscoverer serviceDiscoverer)
properties - The properties used to configure the server.serviceDiscoverer - The discoverer used to identify the services that should be served.@ConditionalOnBean(value=InProcessGrpcServerFactory.class) @Bean public GrpcServerLifecycle inProcessGrpcServerLifecycle(InProcessGrpcServerFactory factory)
factory - The factory used to create the lifecycle.