Class TimerImpl

  • All Implemented Interfaces:
    Controllable, Named, Timer

    public class TimerImpl
    extends ControllableBase
    implements Timer
    This interface exists because a Controllable is not loggable: only a Timer is loggable (we do not want TimerGroup to be loggable).
    • Field Detail

      • isActivated

        private java.util.concurrent.atomic.AtomicBoolean isActivated
    • Constructor Detail

      • TimerImpl

        TimerImpl​(int id,
                  TimerFactoryImpl factory,
                  java.lang.String name,
                  java.lang.String description)
    • Method Detail

      • isActivated

        public final boolean isActivated()
        Description copied from interface: Timer
        Return true if this Timer is ready to create TimerEvents. This is the case either if this Timer is enabled, or is reachable through contents() from an enabled TimerGroup.
        Specified by:
        isActivated in interface Timer
      • setActivated

        void setActivated​(boolean flag)