Class GrpcServerBuilder


  • @Factory
    public class GrpcServerBuilder
    extends java.lang.Object
    Constructs the ServerBuilder instance. Here to allow extensions via a BeanCreatedEventListener for ServerBuilder.
    Since:
    1.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected io.grpc.ServerBuilder<?> serverBuilder​(GrpcServerConfiguration configuration, java.util.List<io.grpc.BindableService> serviceList, java.util.List<io.grpc.ServerInterceptor> interceptors, java.util.List<io.grpc.ServerTransportFilter> serverTransportFilters, java.util.List<io.grpc.ServerServiceDefinition> serverServiceDefinitions)
      The server builder instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GrpcServerBuilder

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

      • serverBuilder

        @Bean
        @Singleton
        protected io.grpc.ServerBuilder<?> serverBuilder​(GrpcServerConfiguration configuration,
                                                         @Nullable
                                                         java.util.List<io.grpc.BindableService> serviceList,
                                                         @Nullable
                                                         java.util.List<io.grpc.ServerInterceptor> interceptors,
                                                         @Nullable
                                                         java.util.List<io.grpc.ServerTransportFilter> serverTransportFilters,
                                                         @Nullable
                                                         java.util.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
        Returns:
        The builder