Class AsyncVariantContextWriter

java.lang.Object
htsjdk.samtools.util.AbstractAsyncWriter<VariantContext>
htsjdk.variant.variantcontext.writer.AsyncVariantContextWriter
All Implemented Interfaces:
VariantContextWriter, Closeable, AutoCloseable

public class AsyncVariantContextWriter extends AbstractAsyncWriter<VariantContext> implements VariantContextWriter
AsyncVariantContextWriter that can be wrapped around an underlying AsyncVariantContextWriter to provide asynchronous output. Records added are placed into a queue, the queue is then drained into the underlying VariantContextWriter by a thread owned by the instance. Exceptions experienced by the writer thread will be emitted back to the caller in subsequent calls to either add() or close().