Invoke the function in indicator to calculate result and persistent to storage.
This commit is contained in:
parent
d39b6baf35
commit
77e5b65b53
|
|
@ -122,8 +122,11 @@ public class IndicatorPersistentWorker extends AbstractWorker<Indicator> {
|
|||
private void cacheData(Indicator input) {
|
||||
mergeDataCache.writing();
|
||||
if (mergeDataCache.containsKey(input)) {
|
||||
mergeDataCache.get(input).combine(input);
|
||||
Indicator indicator = mergeDataCache.get(input);
|
||||
indicator.combine(input);
|
||||
indicator.calculate();
|
||||
} else {
|
||||
input.calculate();
|
||||
mergeDataCache.put(input);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue