Class GrpcRouting
java.lang.Object
io.helidon.webserver.grpc.GrpcRouting
- All Implemented Interfaces:
Routing, ServerLifecycle
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidAfter server stop.voidBefore server start.static GrpcRouting.Builderbuilder()New routing builder.WeightedBag<io.grpc.ServerInterceptor> Weighted bag of server interceptors associated with routing.services()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ServerLifecycle
afterStartModifier and TypeMethodDescriptiondefault voidafterStart(WebServer webServer) After server start.
-
Method Details
-
routingType
-
builder
-
beforeStart
public void beforeStart()Description copied from interface:ServerLifecycleBefore server start. If this method throws an exception, server startup fails and the server attempts startup cleanup.- Specified by:
beforeStartin interfaceServerLifecycle
-
afterStop
public void afterStop()Description copied from interface:ServerLifecycleAfter server stop. Exceptions thrown by this method failWebServer.stop()after listener cleanup has been attempted. If this method is invoked during startup cleanup, exceptions may failWebServer.start(). If this method is invoked during suspend or resume failure cleanup, exceptions may be suppressed on the original suspend or resume failure.- Specified by:
afterStopin interfaceServerLifecycle
-
interceptors
Weighted bag of server interceptors associated with routing.- Returns:
- weighted bag of server interceptors
-
services
- Returns:
- a
Listof theGrpcServiceDescriptorinstances contained in thisGrpcRouting
-