Class ContentSinkSubscriber

java.lang.Object
org.eclipse.jetty.io.content.ContentSinkSubscriber
All Implemented Interfaces:
Flow.Subscriber<Content.Chunk>

public class ContentSinkSubscriber extends Object implements Flow.Subscriber<Content.Chunk>

A Flow.Subscriber that wraps a Content.Sink.

Content delivered to the onNext(Content.Chunk) method is written to Content.Sink.write(boolean, ByteBuffer, Callback) and the chunk is released once the write callback is succeeded or failed.