Class AbortableInputStreamSubscriber

java.lang.Object
java.io.InputStream
software.amazon.awssdk.http.async.AbortableInputStreamSubscriber
All Implemented Interfaces:
Closeable, AutoCloseable, org.reactivestreams.Subscriber<ByteBuffer>, Abortable

public final class AbortableInputStreamSubscriber extends InputStream implements org.reactivestreams.Subscriber<ByteBuffer>, Abortable
Wrapper of InputStreamSubscriber that also implements Abortable. It will invoke close() when abort() is invoked. Upon closing, the underlying InputStreamSubscriber will be closed, and additional action can be added via AbortableInputStreamSubscriber.Builder.doAfterClose(Runnable).