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
|
bufferedRecords, DELAY, INITIAL_DELAY, logger, persistenceExecutor, scheduler, TIME_UNIT, totalBufferedRecords| Constructor and Description |
|---|
BufferAggregationScheduler(PersistenceExecutor persistenceExecutor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTimeToPersist() |
protected void |
schedulerSpecificClear() |
aggregate, aggregate, clear, flush, getAggregatedRecord, instantiateAggregatedRecord, madeAggregation, newInstance, reallyFlush, runprotected static final int MAX_RECORDS_NUMBER
protected static final long OLD_RECORD_MAX_TIME_ELAPSED
protected boolean firstOfBuffer
protected long firstBufferedTime
public BufferAggregationScheduler(PersistenceExecutor persistenceExecutor)
protected void schedulerSpecificClear()
schedulerSpecificClear in class AggregationSchedulerpublic boolean isTimeToPersist()
isTimeToPersist in class AggregationSchedulerCopyright © 2016. All Rights Reserved.