Package io.micronaut.grpc.server
Class GrpcServerBuilder
java.lang.Object
io.micronaut.grpc.server.GrpcServerBuilder
Constructs the
ServerBuilder
instance. Here to allow extensions via a BeanCreatedEventListener
for ServerBuilder
.- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionGrpcServerBuilder
(@Nullable HealthStatusManagerContainer healthStatusManagerContainer) Constructs theServerBuilder
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected io.grpc.ServerBuilder<?>
serverBuilder
(GrpcServerConfiguration configuration, @Nullable List<io.grpc.BindableService> serviceList, @Nullable List<io.grpc.ServerInterceptor> interceptors, @Nullable List<io.grpc.ServerTransportFilter> serverTransportFilters, @Nullable List<io.grpc.ServerServiceDefinition> serverServiceDefinitions) The server builder instance.
-
Constructor Details
-
GrpcServerBuilder
@Inject public GrpcServerBuilder(@Nullable @Nullable HealthStatusManagerContainer healthStatusManagerContainer) Constructs theServerBuilder
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 configurationserviceList
- The bindable servicesinterceptors
- The server interceptorsserverTransportFilters
- The server transport filtersserverServiceDefinitions
- The server service definitions- Returns:
- The builder
-