Class MailboxContentObserver
- java.lang.Object
-
- org.apache.pinot.query.mailbox.channel.MailboxContentObserver
-
- All Implemented Interfaces:
io.grpc.stub.StreamObserver<Mailbox.MailboxContent>
public class MailboxContentObserver extends Object implements io.grpc.stub.StreamObserver<Mailbox.MailboxContent>
MailboxContentObserveris the content streaming observer used to receive mailbox content.When the observer onNext() is called (e.g. when data packet has arrived at the receiving end), it puts the mailbox content to the receiving mailbox buffer; response with the remaining buffer size of the receiving mailbox to the sender side.
-
-
Constructor Summary
Constructors Constructor Description MailboxContentObserver(MailboxService mailboxService, io.grpc.stub.StreamObserver<Mailbox.MailboxStatus> responseObserver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonCompleted()voidonError(Throwable t)voidonNext(Mailbox.MailboxContent mailboxContent)
-
-
-
Constructor Detail
-
MailboxContentObserver
public MailboxContentObserver(MailboxService mailboxService, io.grpc.stub.StreamObserver<Mailbox.MailboxStatus> responseObserver)
-
-
Method Detail
-
onNext
public void onNext(Mailbox.MailboxContent mailboxContent)
- Specified by:
onNextin interfaceio.grpc.stub.StreamObserver<Mailbox.MailboxContent>
-
onError
public void onError(Throwable t)
- Specified by:
onErrorin interfaceio.grpc.stub.StreamObserver<Mailbox.MailboxContent>
-
onCompleted
public void onCompleted()
- Specified by:
onCompletedin interfaceio.grpc.stub.StreamObserver<Mailbox.MailboxContent>
-
-