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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BeanManager
beanManager()
Obtain theBeanManager
.Config
config()
Obtain the Helidon configuration.GrpcServerConfiguration.Builder
grpcServerConfiguration()
Obtain theGrpcServerConfiguration
.GrpcRouting.Builder
routing()
Obtain theGrpcRouting.Builder
to 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.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
-
-