R - result type of aggregationA - argument type being aggregatedpublic abstract class Aggregator<R,A> extends Object implements ReadFunction<R>
 The Aggregator uses calculate(java.util.List) to aggregate
 the values of the current time slice. If no values were collected in the
 current time slice, the last value (and only the last value, is passed
 so that the output remains consistent with what would be currently
 posted. Non calculation is done if no values were collected in the current
 and in the previous time slice.
| Modifier | Constructor and Description | 
|---|---|
protected  | 
Aggregator(ReadFunction<List<A>> collector)
Creates a new aggregator. 
 | 
protected Aggregator(ReadFunction<List<A>> collector)
collector - a suitable collectorpublic final R readValue()
ReadFunctionreadValue in interface ReadFunction<R>Copyright © 2010–2015. All rights reserved.