@Configuration @EnableConfigurationProperties @ConditionalOnClass(value={io.grpc.Server.class,GrpcServerFactory.class}) public class GrpcServerAutoConfiguration extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
GrpcServerAutoConfiguration.TraceServerAutoConfiguration |
Constructor and Description |
---|
GrpcServerAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
GrpcServerProperties |
defaultGrpcServerProperties() |
AnnotationGrpcServiceDiscoverer |
defaultGrpcServiceFinder() |
GlobalServerInterceptorRegistry |
globalServerInterceptorRegistry() |
GrpcServerLifecycle |
grpcServerLifecycle(GrpcServerFactory factory) |
NettyGrpcServerFactory |
nettyGrpcServiceFactory(GrpcServerProperties properties,
GrpcServiceDiscoverer discoverer) |
@ConditionalOnMissingBean @Bean public GrpcServerProperties defaultGrpcServerProperties()
@Bean public GlobalServerInterceptorRegistry globalServerInterceptorRegistry()
@ConditionalOnMissingBean @Bean public AnnotationGrpcServiceDiscoverer defaultGrpcServiceFinder()
@ConditionalOnMissingBean @ConditionalOnClass(value=io.netty.channel.Channel.class) @Bean public NettyGrpcServerFactory nettyGrpcServiceFactory(GrpcServerProperties properties, GrpcServiceDiscoverer discoverer)
@ConditionalOnMissingBean @Bean public GrpcServerLifecycle grpcServerLifecycle(GrpcServerFactory factory)