Class TimerTemplate

java.lang.Object
com.aquima.interactions.test.templates.timer.TimerTemplate
All Implemented Interfaces:
com.aquima.interactions.foundation.timer.ITimer

public class TimerTemplate extends Object implements com.aquima.interactions.foundation.timer.ITimer
Timer template for easy testing of timed events.
Since:
7.1
Author:
Jon van Leuven
  • Constructor Details

    • TimerTemplate

      public TimerTemplate()
  • Method Details

    • triggerTimeEvent

      public void triggerTimeEvent(com.aquima.interactions.foundation.types.DateTimeValue date)
      This method may be used to trigger a timer event for all the listeners.
      Parameters:
      date - The date/time that should be used in the event.
    • getRegisteredListeners

      public com.aquima.interactions.foundation.timer.ITimerListener[] getRegisteredListeners()
    • addListener

      public void addListener(com.aquima.interactions.foundation.timer.ITimerListener listener)
      Specified by:
      addListener in interface com.aquima.interactions.foundation.timer.ITimer
    • removeListener

      public boolean removeListener(com.aquima.interactions.foundation.timer.ITimerListener listener)
      Specified by:
      removeListener in interface com.aquima.interactions.foundation.timer.ITimer