Interface GrpcMpContext
public interface GrpcMpContext
A context to allow a microprofile gRPC server extensions to configure additional
services or components for the gRPC server or use the CDI bean manager.
-
Method Summary
Modifier and TypeMethodDescriptionObtain theBeanManager
.config()
Obtain the Helidon configuration.Obtain theGrpcServerConfiguration
.routing()
Obtain theGrpcRouting.Builder
to allow modifications to be made to the routing before the server is configured.Return a completion stage is completed when the gRPC server is shut down.Return a completion stage is completed when the gRPC server is started.
-
Method Details
-
config
Config config()Obtain the Helidon configuration.- Returns:
- the Helidon configuration
-
grpcServerConfiguration
GrpcServerConfiguration.Builder grpcServerConfiguration()Obtain theGrpcServerConfiguration
.- Returns:
- the
GrpcServerConfiguration
-
routing
GrpcRouting.Builder routing()Obtain theGrpcRouting.Builder
to allow modifications to be made to the routing before the server is configured.- Returns:
- the
GrpcRouting.Builder
-
beanManager
BeanManager beanManager()Obtain theBeanManager
.- Returns:
- the
BeanManager
-
whenStarted
CompletionStage<GrpcServer> whenStarted()Return a completion stage is completed when the gRPC server is started.- Returns:
- a completion stage is completed when the gRPC server is started
-
whenShutdown
CompletionStage<GrpcServer> whenShutdown()Return a completion stage is completed when the gRPC server is shut down.- Returns:
- a completion stage is completed when the gRPC server is shut down
-