Class InMemoryPublisher

  • All Implemented Interfaces:
    org.reactivestreams.Publisher<ByteBuffer>

    public class InMemoryPublisher
    extends Object
    implements org.reactivestreams.Publisher<ByteBuffer>
    Temporarily used for buffering all data into memory. TODO(sra-identity-auth): Remove this by supporting chunked encoding. We should not buffer everything into memory.
    • Constructor Detail

      • InMemoryPublisher

        public InMemoryPublisher​(List<ByteBuffer> data)
    • Method Detail

      • subscribe

        public void subscribe​(org.reactivestreams.Subscriber<? super ByteBuffer> s)
        Specified by:
        subscribe in interface org.reactivestreams.Publisher<ByteBuffer>