Class OrderedConcurrentRequestObserver<RequestT,​ResponseT>

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

    public class OrderedConcurrentRequestObserver<RequestT,​ResponseT>
    extends ConcurrentRequestObserver<RequestT,​ResponseT>
    implements io.grpc.stub.StreamObserver<RequestT>
    A ConcurrentRequestObserver that uses OrderedConcurrentOutputBuffer to automatically ensure that response messages are sent in order corresponding to request messages order.

    Note: as only responses to "head" requests are sent directly to clients and rest is buffered, the number of requests processed concurrently should not be set too big to avoid excessive buffer growth.