Class GenieTask

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    LeaderTask

    public abstract class GenieTask
    extends java.lang.Object
    implements java.lang.Runnable
    Interface for any task that should run in the Genie system. Will be extended by more specific interfaces.
    Since:
    3.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      GenieTask()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      long getFixedDelay()
      Get how long the system should wait between invoking the run() method of this task in milliseconds after the last successful run of the task.
      long getFixedRate()
      Get how long the system should wait between invoking the run() method of this task in milliseconds.
      abstract GenieTaskScheduleType getScheduleType()
      Get the type of scheduling mechanism which should be used to schedule this task.
      org.springframework.scheduling.Trigger getTrigger()
      Get the Trigger which this task should be scheduled with.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Runnable

        run
    • Constructor Detail

      • GenieTask

        public GenieTask()
    • Method Detail

      • getScheduleType

        public abstract GenieTaskScheduleType getScheduleType()
        Get the type of scheduling mechanism which should be used to schedule this task.
        Returns:
        The schedule type
      • getTrigger

        public org.springframework.scheduling.Trigger getTrigger()
        Get the Trigger which this task should be scheduled with.
        Returns:
        The trigger
      • getFixedRate

        public long getFixedRate()
        Get how long the system should wait between invoking the run() method of this task in milliseconds.
        Returns:
        The period to wait between invocations of run for this task
      • getFixedDelay

        public long getFixedDelay()
        Get how long the system should wait between invoking the run() method of this task in milliseconds after the last successful run of the task.
        Returns:
        The time to delay between task completions