Class ConsumerService
- java.lang.Object
-
- org.apache.eventmesh.common.protocol.grpc.protos.ConsumerServiceGrpc.ConsumerServiceImplBase
-
- org.apache.eventmesh.runtime.core.protocol.grpc.service.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 voidsubscribe(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)voidunsubscribe(org.apache.eventmesh.common.protocol.grpc.protos.Subscription request, io.grpc.stub.StreamObserver<org.apache.eventmesh.common.protocol.grpc.protos.Response> responseObserver)
-
-
-
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:
subscribein classorg.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:
subscribeStreamin classorg.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:
unsubscribein classorg.apache.eventmesh.common.protocol.grpc.protos.ConsumerServiceGrpc.ConsumerServiceImplBase
-
-