Class ReadableInputStreamFrameChannel

java.lang.Object
org.apache.druid.frame.channel.ReadableInputStreamFrameChannel
All Implemented Interfaces:
Closeable, AutoCloseable, ReadableFrameChannel

public class ReadableInputStreamFrameChannel extends Object implements ReadableFrameChannel
Channel backed by an InputStream.

Frame channels are expected to be nonblocking, but InputStreams cannot be read in nonblocking fashion. This implementation deals with that by using an ExecutorService to read from the stream in a separate thread.