Class TimerImpl

  • All Implemented Interfaces:
    java.lang.Runnable

    public class TimerImpl
    extends java.util.TimerTask
    Time task can be used to request the notification of all triggers.
    Version:
    1.0
    Author:
    JEAF Development Team
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      Run method requests life cycle manager to notify all registered triggers.
      void start​(int pInterval, int pDelay)
      Method starts the timer with the passed interval.
      void stop()
      Method stops the timer.
      • Methods inherited from class java.util.TimerTask

        cancel, scheduledExecutionTime
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimerImpl

        public TimerImpl​(GenericLifecycleManager pLifecycleManager)
        Initialize object. Therefore the used life cycle manager has to be passed.
        Parameters:
        pLifecycleManager - LifecycleManager to use. The parameter must not be null.
    • Method Detail

      • run

        public void run()
        Run method requests life cycle manager to notify all registered triggers.
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class java.util.TimerTask
      • start

        public void start​(int pInterval,
                          int pDelay)
        Method starts the timer with the passed interval.
        Parameters:
        pInterval - Scheduling interval in seconds that should be used.
        pDelay - Delay in seconds until the scheduling starts the first time.
      • stop

        public void stop()
        Method stops the timer.