public class AsyncVariantContextWriter extends AbstractAsyncWriter<VariantContext> implements VariantContextWriter
DEFAULT_QUEUE_SIZE
Constructor and Description |
---|
AsyncVariantContextWriter(VariantContextWriter out)
Creates a new AsyncVariantContextWriter wrapping the provided VariantContextWriter.
|
AsyncVariantContextWriter(VariantContextWriter out,
int queueSize)
Creates an AsyncVariantContextWriter wrapping the provided VariantContextWriter and using the specified
queue size for buffer VariantContexts.
|
Modifier and Type | Method and Description |
---|---|
void |
add(VariantContext vc) |
boolean |
checkError() |
protected java.lang.String |
getThreadNamePrefix()
Returns the prefix to use when naming threads.
|
protected void |
synchronouslyClose() |
protected void |
synchronouslyWrite(VariantContext item) |
void |
writeHeader(VCFHeader header) |
close, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public AsyncVariantContextWriter(VariantContextWriter out)
public AsyncVariantContextWriter(VariantContextWriter out, int queueSize)
protected void synchronouslyWrite(VariantContext item)
synchronouslyWrite
in class AbstractAsyncWriter<VariantContext>
protected void synchronouslyClose()
synchronouslyClose
in class AbstractAsyncWriter<VariantContext>
protected final java.lang.String getThreadNamePrefix()
AbstractAsyncWriter
getThreadNamePrefix
in class AbstractAsyncWriter<VariantContext>
public void add(VariantContext vc)
add
in interface VariantContextWriter
public void writeHeader(VCFHeader header)
writeHeader
in interface VariantContextWriter
public boolean checkError()
checkError
in interface VariantContextWriter