Class ByteBufferStoringSubscriber

    • Constructor Detail

      • ByteBufferStoringSubscriber

        public ByteBufferStoringSubscriber​(long minimumBytesBuffered)
        Create a subscriber that stores at least minimumBytesBuffered in memory for retrieval. The subscriber will only request more from the subscription when fewer bytes are buffered AND in flight requests from the subscription will likely be under minimumBytesBuffered.
    • Method Detail

      • onSubscribe

        public void onSubscribe​(org.reactivestreams.Subscription s)
        Specified by:
        onSubscribe in interface org.reactivestreams.Subscriber<ByteBuffer>
      • onNext

        public void onNext​(ByteBuffer byteBuffer)
        Specified by:
        onNext in interface org.reactivestreams.Subscriber<ByteBuffer>
      • onError

        public void onError​(Throwable t)
        Specified by:
        onError in interface org.reactivestreams.Subscriber<ByteBuffer>
      • onComplete

        public void onComplete()
        Specified by:
        onComplete in interface org.reactivestreams.Subscriber<ByteBuffer>