Class GrpcRouting

java.lang.Object
io.helidon.webserver.grpc.GrpcRouting
All Implemented Interfaces:
Routing, ServerLifecycle

public class GrpcRouting extends Object implements Routing
gRPC specific routing.
  • Method Details

    • routingType

      public Class<? extends Routing> routingType()
      Description copied from interface: Routing
      The class used by a Router to identify this Routing type and associate a connection with it.
      Specified by:
      routingType in interface Routing
      Returns:
      this routing type
    • builder

      public static GrpcRouting.Builder builder()
      New routing builder.
      Returns:
      new builder
    • beforeStart

      public void beforeStart()
      Description copied from interface: ServerLifecycle
      Before server start. If this method throws an exception, server startup fails and the server attempts startup cleanup.
      Specified by:
      beforeStart in interface ServerLifecycle
    • afterStop

      public void afterStop()
      Description copied from interface: ServerLifecycle
      After server stop. Exceptions thrown by this method fail WebServer.stop() after listener cleanup has been attempted. If this method is invoked during startup cleanup, exceptions may fail WebServer.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:
      afterStop in interface ServerLifecycle
    • interceptors

      public WeightedBag<io.grpc.ServerInterceptor> interceptors()
      Weighted bag of server interceptors associated with routing.
      Returns:
      weighted bag of server interceptors
    • services

      public List<GrpcServiceDescriptor> services()
      Obtain a List of the GrpcServiceDescriptor instances contained in this GrpcRouting.
      Returns:
      a List of the GrpcServiceDescriptor instances contained in this GrpcRouting