Class for tracking the need to recalculate. This class tracks the number of external change notifications received. Before a calculation, this value is queried. If the calculation finishes and this count hasn't changed, then the calculation is considered a success. If the count did change during the calculation, it means that we received an external change notification while calculating. Thus, the calculated value is suspect and should be recomputed. As a side note, this work is performed by this object instead of by the CompiledFunction object, because we want to avoid holding synchronization locks on the CompiledFunction object whenever possible. (This helps avoid potential deadlocks within the DataRepository.)
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.