public class BufferAggregationScheduler extends AggregationScheduler
| Modifier and Type | Field and Description |
|---|---|
protected long |
firstBufferedTime |
protected boolean |
firstOfBuffer |
protected static int |
MAX_RECORDS_NUMBER
Define the MAX number of Record to buffer.
|
protected static long |
OLD_RECORD_MAX_TIME_ELAPSED
The Max amount of time elapsed form last record before after that
the buffered record are persisted even if
TODO Get from configuration
|
aggregationScheduler, records, totalBufferedRecords, unaggregableRecords| Modifier | Constructor and Description |
|---|---|
protected |
BufferAggregationScheduler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTimeToPersist() |
protected void |
specificClear() |
aggregate, aggregate, clear, flush, getAggregatedUsageRecordClass, getAggregattionStrategyUsageRecordClass, getInstance, instantiateAggregatedUsageRecord, instantiateAggregationStrategy, madeAggregationprotected static final int MAX_RECORDS_NUMBER
protected static final long OLD_RECORD_MAX_TIME_ELAPSED
protected boolean firstOfBuffer
protected long firstBufferedTime
protected void specificClear()
specificClear in class AggregationSchedulerpublic boolean isTimeToPersist()
isTimeToPersist in class AggregationSchedulerCopyright © 2015. All Rights Reserved.