Class SynchronizedSummaryStatistics

  • All Implemented Interfaces:
    StatisticalSummary

    public class SynchronizedSummaryStatistics
    extends SummaryStatistics
    Implementation of SummaryStatistics that is safe to use in a multithreaded environment. Multiple threads can safely operate on a single instance without causing runtime exceptions due to race conditions. In effect, this implementation makes modification and access methods atomic operations for a single instance. That is to say, as one thread is computing a statistic from the instance, no other thread can modify the instance nor compute another statistic.
    Since:
    1.2