Class EventBusBridgeGrpcService

java.lang.Object
io.vertx.grpc.event.v1alpha.EventBusBridgeService
io.vertx.grpc.event.v1alpha.EventBusBridgeGrpcService
All Implemented Interfaces:
EventBusBridge, Service, ServiceInvoker

public class EventBusBridgeGrpcService extends EventBusBridgeService implements Service

Provides support for RPC methods implementations of the EventBusBridge gRPC service.

The following methods of this class should be overridden to provide an implementation of the service:

  • Publish
  • Send
  • Request
  • Subscribe
  • Unsubscribe
  • Ping
  • Field Details

    • SERVICE_NAME

      public static final ServiceName SERVICE_NAME
      EventBusBridge service name.
    • SERVICE_DESCRIPTOR

      public static final com.google.protobuf.Descriptors.ServiceDescriptor SERVICE_DESCRIPTOR
      EventBusBridge service descriptor.
    • Publish

      public static final ServiceMethod<PublishOp, com.google.protobuf.Empty> Publish
      Publish protobuf RPC server service method.
    • Send

      public static final ServiceMethod<SendOp, com.google.protobuf.Empty> Send
      Send protobuf RPC server service method.
    • Request

      public static final ServiceMethod<RequestOp, EventBusMessage> Request
      Request protobuf RPC server service method.
    • Subscribe

      public static final ServiceMethod<SubscribeOp, EventBusMessage> Subscribe
      Subscribe protobuf RPC server service method.
    • Unsubscribe

      public static final ServiceMethod<UnsubscribeOp, com.google.protobuf.Empty> Unsubscribe
      Unsubscribe protobuf RPC server service method.
    • Ping

      public static final ServiceMethod<com.google.protobuf.Empty, com.google.protobuf.Empty> Ping
      Ping protobuf RPC server service method.
  • Constructor Details

    • EventBusBridgeGrpcService

      public EventBusBridgeGrpcService()
  • Method Details

    • name

      public ServiceName name()
      Description copied from interface: Service
      Get the name of the service.
      Specified by:
      name in interface Service
      Returns:
      the name of the service
    • descriptor

      public com.google.protobuf.Descriptors.ServiceDescriptor descriptor()
      Description copied from interface: Service
      Get the service descriptor that contains detailed information about the service.
      Specified by:
      descriptor in interface Service
      Returns:
      the service descriptor
    • of

      public static Service of(EventBusBridgeService service)
      Returns:
      a service binding all methods of the given service
    • all

      public static List<ServiceMethod<?,?>> all()
      Returns:
      a mutable list of the known protobuf RPC server service methods.
    • invoker

      public <Req,Resp> ServiceMethodInvoker<Req,Resp> invoker(ServiceMethod<Req,Resp> method)
      Description copied from interface: ServiceInvoker
      Obtain a service method invoker.
      Specified by:
      invoker in interface ServiceInvoker
      Parameters:
      method - the service method
    • methods

      public List<ServiceMethod<?,?>> methods()
      Description copied from interface: Service
      Get the list of all methods implemented by this service.
      Specified by:
      methods in interface Service
      Returns:
      the list of service methods
    • builder

      Returns:
      a free form builder that gives the opportunity to bind only certain methods of a service