protected class MetricQueue.EventConsumer extends Object implements com.lmax.disruptor.EventHandler<MetricEvent>
| Modifier and Type | Field and Description |
|---|---|
protected int |
mergeCount |
protected Map<String,Map<MetricKey,PackageMetric>> |
metrics |
protected int |
sendCount |
protected long |
start |
| Constructor and Description |
|---|
EventConsumer() |
| Modifier and Type | Method and Description |
|---|---|
BucketFunction |
getBucketFunction() |
void |
onEvent(MetricEvent event,
long sequence,
boolean endOfBatch) |
protected boolean |
tryPublishEvent() |
protected int sendCount
protected int mergeCount
protected long start
protected Map<String,Map<MetricKey,PackageMetric>> metrics
public void onEvent(MetricEvent event, long sequence, boolean endOfBatch) throws Exception
onEvent in interface com.lmax.disruptor.EventHandler<MetricEvent>Exceptionprotected boolean tryPublishEvent()
public BucketFunction getBucketFunction()
Copyright © 2019. All rights reserved.