Class ReadableContentChannel

java.lang.Object
com.yahoo.jdisc.handler.ReadableContentChannel
All Implemented Interfaces:
ContentChannel, Iterable<ByteBuffer>

public final class ReadableContentChannel extends Object implements ContentChannel, Iterable<ByteBuffer>

This class implements a ContentChannel that has a blocking read interface. Use this class if you intend to consume the content of the ContentChannel yourself. If you intend to forward the content to another ContentChannel, use BufferedContentChannel instead. If you might want to consume the content, return a BufferedContentChannel up front, and connect that to a ReadableContentChannel at the point where you decide to consume the data.

Author:
Simon Thoresen Hult