Class AsyncContent

java.lang.Object
org.eclipse.jetty.io.content.AsyncContent
All Implemented Interfaces:
Closeable, AutoCloseable, Content.Sink, Content.Source

public class AsyncContent extends Object implements Content.Sink, Content.Source, Closeable

A Content.Source that is also a Content.Sink. Content written to the Content.Sink is converted to a Content.Chunk and made available to calls to the read() method. If necessary, any Runnable passed to the demand(Runnable) method is invoked once content is written to the Content.Sink.