public class MetricQueue extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
MetricQueue.EventConsumer |
| Modifier and Type | Field and Description |
|---|---|
protected ConfigManger |
configManger |
protected QueueContext<MetricEvent> |
context |
protected QueueContext<MatricPackageEvent> |
packageContext |
protected MetricStats |
stats |
| Constructor and Description |
|---|
MetricQueue() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPackageQueueSize() |
int |
getQueueSize() |
void |
produce(Metric metric) |
void |
shutdown() |
protected QueueContext<MetricEvent> context
protected QueueContext<MatricPackageEvent> packageContext
@Inject protected ConfigManger configManger
@Inject protected MetricStats stats
public void produce(Metric metric)
public void shutdown()
public int getQueueSize()
public int getPackageQueueSize()
Copyright © 2019. All rights reserved.