Class MailboxContentObserver

  • All Implemented Interfaces:
    io.grpc.stub.StreamObserver<Mailbox.MailboxContent>

    public class MailboxContentObserver
    extends Object
    implements io.grpc.stub.StreamObserver<Mailbox.MailboxContent>
    MailboxContentObserver is 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.