Class GrpcMailboxServer
- java.lang.Object
-
- org.apache.pinot.common.proto.PinotMailboxGrpc.PinotMailboxImplBase
-
- org.apache.pinot.query.mailbox.channel.GrpcMailboxServer
-
- All Implemented Interfaces:
io.grpc.BindableService
public class GrpcMailboxServer extends PinotMailboxGrpc.PinotMailboxImplBase
GrpcMailboxServermanages GRPC-based mailboxes by creating a stream-stream GRPC server.This GRPC server is responsible for constructing
StreamObserverout of an initial "open" request send by the sender of the sender/receiver pair.
-
-
Constructor Summary
Constructors Constructor Description GrpcMailboxServer(MailboxService mailboxService, org.apache.pinot.spi.env.PinotConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.stub.StreamObserver<Mailbox.MailboxContent>open(io.grpc.stub.StreamObserver<Mailbox.MailboxStatus> responseObserver)voidshutdown()voidstart()-
Methods inherited from class org.apache.pinot.common.proto.PinotMailboxGrpc.PinotMailboxImplBase
bindService
-
-
-
-
Constructor Detail
-
GrpcMailboxServer
public GrpcMailboxServer(MailboxService mailboxService, org.apache.pinot.spi.env.PinotConfiguration config)
-
-
Method Detail
-
start
public void start()
-
shutdown
public void shutdown()
-
open
public io.grpc.stub.StreamObserver<Mailbox.MailboxContent> open(io.grpc.stub.StreamObserver<Mailbox.MailboxStatus> responseObserver)
- Overrides:
openin classPinotMailboxGrpc.PinotMailboxImplBase
-
-