Class GrpcServerBuilder

java.lang.Object
io.micronaut.grpc.server.GrpcServerBuilder

@Factory public class GrpcServerBuilder extends Object
Constructs the ServerBuilder instance. Here to allow extensions via a BeanCreatedEventListener for ServerBuilder.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • GrpcServerBuilder

      @Inject public GrpcServerBuilder(@Nullable @Nullable HealthStatusManagerContainer healthStatusManagerContainer)
      Constructs the ServerBuilder instance.
      Parameters:
      healthStatusManagerContainer - if enabled, inject a GRPC health status manager.
  • Method Details

    • serverBuilder

      @Bean @Singleton protected io.grpc.ServerBuilder<?> serverBuilder(GrpcServerConfiguration configuration, @Nullable @Nullable List<io.grpc.BindableService> serviceList, @Nullable @Nullable List<io.grpc.ServerInterceptor> interceptors, @Nullable @Nullable List<io.grpc.ServerTransportFilter> serverTransportFilters, @Nullable @Nullable List<io.grpc.ServerServiceDefinition> serverServiceDefinitions)
      The server builder instance.
      Parameters:
      configuration - The configuration
      serviceList - The bindable services
      interceptors - The server interceptors
      serverTransportFilters - The server transport filters
      serverServiceDefinitions - The server service definitions
      Returns:
      The builder