public abstract class ProcessBufferProcessor extends Object implements com.lmax.disruptor.EventHandler<MessageEvent>
| Modifier and Type | Field and Description |
|---|---|
protected com.codahale.metrics.MetricRegistry |
metricRegistry |
protected AtomicInteger |
processBufferWatermark |
| Constructor and Description |
|---|
ProcessBufferProcessor(com.codahale.metrics.MetricRegistry metricRegistry,
AtomicInteger processBufferWatermark,
long ordinal,
long numberOfConsumers) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
handleMessage(Message msg) |
void |
onEvent(MessageEvent event,
long sequence,
boolean endOfBatch) |
protected AtomicInteger processBufferWatermark
protected final com.codahale.metrics.MetricRegistry metricRegistry
public ProcessBufferProcessor(com.codahale.metrics.MetricRegistry metricRegistry,
AtomicInteger processBufferWatermark,
long ordinal,
long numberOfConsumers)
public void onEvent(MessageEvent event, long sequence, boolean endOfBatch) throws Exception
onEvent in interface com.lmax.disruptor.EventHandler<MessageEvent>Exceptionprotected abstract void handleMessage(Message msg)
Copyright © 2012–2014 TORCH GmbH. All rights reserved.