Interface GrpcMpContext
-
public interface GrpcMpContextA 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BeanManagerbeanManager()Obtain theBeanManager.Configconfig()Obtain the Helidon configuration.GrpcServerConfiguration.BuildergrpcServerConfiguration()Obtain theGrpcServerConfiguration.GrpcRouting.Builderrouting()Obtain theGrpcRouting.Builderto allow modifications to be made to the routing before the server is configured.CompletionStage<GrpcServer>whenShutdown()Return a completion stage is completed when the gRPC server is shut down.CompletionStage<GrpcServer>whenStarted()Return a completion stage is completed when the gRPC server is started.
-
-
-
Method Detail
-
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.Builderto 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
-
-