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.