T
- the type stored in the collectorpublic class LatestValueCollector<T> extends Object implements Collector<T,T>
Constructor and Description |
---|
LatestValueCollector() |
Modifier and Type | Method and Description |
---|---|
T |
readValue()
Calculates, if needed, and then returns the value for this function.
|
void |
setChangeNotification(Runnable notification)
Task to run to notify of the presence of a new value in the collector.
|
void |
writeValue(T newValue)
Takes the value and consumes it.
|
public void writeValue(T newValue)
WriteFunction
writeValue
in interface WriteFunction<T>
newValue
- a valuepublic T readValue()
ReadFunction
readValue
in interface ReadFunction<T>
Copyright © 2010–2015. All rights reserved.