public class ProcessBuffer extends Buffer
| Modifier and Type | Class and Description |
|---|---|
static interface |
ProcessBuffer.Factory |
| Modifier and Type | Field and Description |
|---|---|
protected ExecutorService |
executor |
static String |
SOURCE_INPUT_ATTR_NAME |
static String |
SOURCE_NODE_ATTR_NAME |
ringBuffer| Constructor and Description |
|---|
ProcessBuffer(com.codahale.metrics.MetricRegistry metricRegistry,
ServerStatus serverStatus,
BaseConfiguration configuration,
InputCache inputCache,
AtomicInteger processBufferWatermark) |
| Modifier and Type | Method and Description |
|---|---|
Cache |
getInputCache() |
void |
initialize(ProcessBufferProcessor[] processors,
int ringBufferSize,
com.lmax.disruptor.WaitStrategy waitStrategy,
int processBufferProcessors) |
void |
insertCached(Message message,
MessageInput sourceInput) |
void |
insertFailFast(Message message,
MessageInput sourceInput) |
getUsage, hasCapacity, isEmptypublic static String SOURCE_INPUT_ATTR_NAME
public static String SOURCE_NODE_ATTR_NAME
protected ExecutorService executor
public ProcessBuffer(com.codahale.metrics.MetricRegistry metricRegistry,
ServerStatus serverStatus,
BaseConfiguration configuration,
InputCache inputCache,
AtomicInteger processBufferWatermark)
public Cache getInputCache()
public void initialize(ProcessBufferProcessor[] processors, int ringBufferSize, com.lmax.disruptor.WaitStrategy waitStrategy, int processBufferProcessors)
public void insertCached(Message message, MessageInput sourceInput)
insertCached in class Bufferpublic void insertFailFast(Message message, MessageInput sourceInput) throws BufferOutOfCapacityException, ProcessingDisabledException
insertFailFast in class BufferBufferOutOfCapacityExceptionProcessingDisabledExceptionCopyright © 2012–2014 TORCH GmbH. All rights reserved.