## Interface CalculationListener

• All Known Implementing Classes:
AggregatingCalculationListener, ResultsListener

public interface CalculationListener
Listener that is notified when calculations are performed by a CalculationRunner.

It is guaranteed that the methods of a listener will only be invoked by a single thread at any time. It is not guaranteed to be the same thread invoking a listener each time. The calling code is synchronized to ensure that any changes in the listener state will be visible to every thread used to invoke the listener. Therefore listener implementations are not required to be thread safe.

A listener instance should not be used for multiple sets of calculations.

• ### Method Summary

All Methods
Modifier and Type Method Description
void calculationsComplete()
Invoked when all calculations have completed.
default void calculationsStarted​(List<CalculationTarget> targets, List<Column> columns)
Invoked when the calculations start; guaranteed to be invoked before resultReceived(CalculationTarget, CalculationResult) and calculationsComplete().
void resultReceived​(CalculationTarget target, CalculationResult result)
Invoked when a calculation completes.