Class AtomicCountRTIndicator

All Implemented Interfaces:
ClockAware, Resettable, RTIndicator

public class AtomicCountRTIndicator extends AbstractDecorableIncrementalRTIndicator
Atomically Count updates RT Indicator
  • Constructor Details

    • AtomicCountRTIndicator

      public AtomicCountRTIndicator()
    • AtomicCountRTIndicator

      public AtomicCountRTIndicator(RTIndicator indicator)
    • AtomicCountRTIndicator

      public AtomicCountRTIndicator(int updateCount, RTIndicator indicator)
  • Method Details

    • getUpdateCount

      public int getUpdateCount()
    • update

      public double update(double newValue)
      Description copied from class: AbstractDecorableIncrementalRTIndicator
      Passes the value through the decorated indicator (if present) before feeding the result into this indicator's incremental update pipeline.
      Specified by:
      update in interface RTIndicator
      Overrides:
      update in class AbstractDecorableIncrementalRTIndicator
      Parameters:
      newValue - the raw input value
      Returns:
      the computed value after decoration and incremental processing