Class ServiceContainer

java.lang.Object
io.vertx.rxjava3.grpc.server.ServiceContainer
All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
Direct Known Subclasses:
GrpcServer

public class ServiceContainer extends Object implements io.vertx.lang.rx.RxDelegate
A contract for registering gRPC service method handlers, without requiring a specific transport.

Generated gRPC service stubs use this interface as their binding abstraction, allowing them to work with any implementation - HTTP/2 via GrpcServer, event bus, etc.

NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final io.vertx.lang.rx.TypeArg<ServiceContainer> __TYPE_ARG
  • Constructor Details

    • ServiceContainer

      public ServiceContainer(ServiceContainer delegate)
    • ServiceContainer

      public ServiceContainer(Object delegate)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getDelegate

      public ServiceContainer getDelegate()
      Specified by:
      getDelegate in interface io.vertx.lang.rx.RxDelegate
    • addService

      public ServiceContainer addService(Service service)
      Add a service to this server.
      Parameters:
      service - the service to add
      Returns:
      a reference to this, so the API can be used fluently
    • services

      public List<Service> services()
      Get a list of all services registered with this server.
      Returns:
      an unmodifiable list of all registered services
    • newInstance

      public static ServiceContainer newInstance(ServiceContainer arg)