public class BlockingBufferWithStats<E> extends BlockingBuffer<E>
BufferAnnotations to provision the
BlockingBuffer and to track the BOpStats as chunks are added
to the buffer.BlockingBuffer.BlockingIteratorDEFAULT_CONSUMER_CHUNK_TIMEOUT, DEFAULT_CONSUMER_CHUNK_TIMEOUT_UNIT, DEFAULT_MINIMUM_CHUNK_SIZE, DEFAULT_PRODUCER_QUEUE_CAPACITY, log| Constructor and Description |
|---|
BlockingBufferWithStats(PipelineOp op,
BOpStats stats) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e,
long timeout,
TimeUnit unit)
Overridden to track
BOpStats.unitsOut and
BOpStats.chunksOut. |
abort, add, clear, close, combineChunks, flush, getChunksAddedCount, getChunkTimeout, getElementsAddedCount, getElementsOnQueueCount, getFuture, getMinimumChunkSize, isEmpty, isOpen, isOrdered, iterator, reset, setFuture, size, toStringpublic BlockingBufferWithStats(PipelineOp op, BOpStats stats)
public boolean add(E e, long timeout, TimeUnit unit) throws InterruptedException
BOpStats.unitsOut and
BOpStats.chunksOut.
Note: BOpStats.chunksOut will report the #of chunks added to this
buffer. However, the buffer MAY combine chunks either on add() or when
drained by the iterator so the actual #of chunks read back from the
iterator MAY differ.
Add element to the buffer.
add in class BlockingBuffer<E>e - The element.timeout - The timeout.unit - The unit in which the timeout is expressed.true iff the element was added to the buffer (
false indicates that the timeout expired before the
element could be added to the buffer).InterruptedException - if interruptedCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.