public class MultiplexBlockingBuffer<E> extends Object
BlockingBuffer instance. Each skin writes through to the backing
BlockingBuffer but may be closed independently of the backing
BlockingBuffer. This allows multiple produces to share a single
BlockingBuffer as long as they use a subset of the
IBlockingBuffer API (they can not set the Future on the
objects returned by this factory or obtain its
IBlockingBuffer.iterator(), but those operations can be performed
against the shared IBlockingBuffer).| Constructor and Description |
|---|
MultiplexBlockingBuffer(IBlockingBuffer<E> b) |
| Modifier and Type | Method and Description |
|---|---|
void |
flushAndCloseAll() |
IBlockingBuffer<E> |
getBackingBuffer()
The
IBlockingBuffer reference provided to the constructor. |
boolean |
isOpen() |
IBlockingBuffer<E> |
newInstance()
Create a new skin for the shared buffer, incrementing the count of the
#of open skins that buffer.
|
public MultiplexBlockingBuffer(IBlockingBuffer<E> b)
public boolean isOpen()
public IBlockingBuffer<E> newInstance()
public void flushAndCloseAll()
public IBlockingBuffer<E> getBackingBuffer()
IBlockingBuffer reference provided to the constructor.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.