Class ProducerService

  • All Implemented Interfaces:
    io.grpc.BindableService

    public class ProducerService
    extends org.apache.eventmesh.common.protocol.grpc.protos.PublisherServiceGrpc.PublisherServiceImplBase
    • Constructor Summary

      Constructors 
      Constructor Description
      ProducerService​(EventMeshGrpcServer eventMeshGrpcServer, java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void batchPublish​(org.apache.eventmesh.common.protocol.grpc.protos.BatchMessage request, io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.Response> responseObserver)  
      void publish​(org.apache.eventmesh.common.protocol.grpc.protos.SimpleMessage request, io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.Response> responseObserver)  
      void requestReply​(org.apache.eventmesh.common.protocol.grpc.protos.SimpleMessage request, io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.SimpleMessage> responseObserver)  
      • Methods inherited from class org.apache.eventmesh.common.protocol.grpc.protos.PublisherServiceGrpc.PublisherServiceImplBase

        bindService
      • Methods inherited from class java.lang.Object

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

      • ProducerService

        public ProducerService​(EventMeshGrpcServer eventMeshGrpcServer,
                               java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)
    • Method Detail

      • publish

        public void publish​(org.apache.eventmesh.common.protocol.grpc.protos.SimpleMessage request,
                            io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.Response> responseObserver)
        Overrides:
        publish in class org.apache.eventmesh.common.protocol.grpc.protos.PublisherServiceGrpc.PublisherServiceImplBase
      • requestReply

        public void requestReply​(org.apache.eventmesh.common.protocol.grpc.protos.SimpleMessage request,
                                 io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.SimpleMessage> responseObserver)
        Overrides:
        requestReply in class org.apache.eventmesh.common.protocol.grpc.protos.PublisherServiceGrpc.PublisherServiceImplBase
      • batchPublish

        public void batchPublish​(org.apache.eventmesh.common.protocol.grpc.protos.BatchMessage request,
                                 io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.Response> responseObserver)
        Overrides:
        batchPublish in class org.apache.eventmesh.common.protocol.grpc.protos.PublisherServiceGrpc.PublisherServiceImplBase