Class SequenceInputStreamResponseHandler

java.lang.Object
org.apache.druid.java.util.http.client.response.SequenceInputStreamResponseHandler
All Implemented Interfaces:
HttpResponseHandler<InputStream,InputStream>

public class SequenceInputStreamResponseHandler extends Object implements HttpResponseHandler<InputStream,InputStream>
A HTTP response handler which uses sequence input streams to create a final InputStream. Any particular instance is encouraged to overwrite a method and call the super if they need extra handling of the method parameters. This implementation uses a blocking queue to feed a SequenceInputStream that is terminated whenever the handler's Done method is called or a throwable is detected. The resulting InputStream will attempt to terminate normally, but on exception in HttpResponseHandler may end with an IOException upon read()