Class ConsumerService

  • All Implemented Interfaces:
    io.grpc.BindableService

    public class ConsumerService
    extends org.apache.eventmesh.common.protocol.grpc.protos.ConsumerServiceGrpc.ConsumerServiceImplBase
    • Constructor Summary

      Constructors 
      Constructor Description
      ConsumerService​(EventMeshGrpcServer eventMeshGrpcServer, java.util.concurrent.ThreadPoolExecutor subscribeThreadPoolExecutor, java.util.concurrent.ThreadPoolExecutor replyThreadPoolExecutor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void subscribe​(org.apache.eventmesh.common.protocol.grpc.protos.Subscription request, io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.Response> responseObserver)  
      io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.Subscription> subscribeStream​(io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.SimpleMessage> responseObserver)  
      void unsubscribe​(org.apache.eventmesh.common.protocol.grpc.protos.Subscription request, io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.Response> responseObserver)  
      • Methods inherited from class org.apache.eventmesh.common.protocol.grpc.protos.ConsumerServiceGrpc.ConsumerServiceImplBase

        bindService
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConsumerService

        public ConsumerService​(EventMeshGrpcServer eventMeshGrpcServer,
                               java.util.concurrent.ThreadPoolExecutor subscribeThreadPoolExecutor,
                               java.util.concurrent.ThreadPoolExecutor replyThreadPoolExecutor)
    • Method Detail

      • subscribe

        public void subscribe​(org.apache.eventmesh.common.protocol.grpc.protos.Subscription request,
                              io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.Response> responseObserver)
        Overrides:
        subscribe in class org.apache.eventmesh.common.protocol.grpc.protos.ConsumerServiceGrpc.ConsumerServiceImplBase
      • subscribeStream

        public io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.Subscription> subscribeStream​(io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.SimpleMessage> responseObserver)
        Overrides:
        subscribeStream in class org.apache.eventmesh.common.protocol.grpc.protos.ConsumerServiceGrpc.ConsumerServiceImplBase
      • unsubscribe

        public void unsubscribe​(org.apache.eventmesh.common.protocol.grpc.protos.Subscription request,
                                io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.Response> responseObserver)
        Overrides:
        unsubscribe in class org.apache.eventmesh.common.protocol.grpc.protos.ConsumerServiceGrpc.ConsumerServiceImplBase