Class OneShotTrigger

java.lang.Object
org.bonitasoft.engine.scheduler.trigger.OneShotTrigger
All Implemented Interfaces:
Trigger
Direct Known Subclasses:
UnixCronTrigger

public class OneShotTrigger extends Object implements Trigger
Author:
Matthieu Chaffotte
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: Trigger
      Gets the name of the trigger
      Specified by:
      getName in interface Trigger
      Returns:
      the name of the trigger
    • getStartDate

      public Date getStartDate()
      Description copied from interface: Trigger
      Returns when the trigger must start
      Specified by:
      getStartDate in interface Trigger
      Returns:
      a date when the trigger must start
    • getPriority

      public int getPriority()
      Description copied from interface: Trigger
      The trigger of the highest priority will be executed first.
      Specified by:
      getPriority in interface Trigger
      Returns:
      the trigger's priority
    • getMisfireHandlingPolicy

      public Trigger.MisfireRestartPolicy getMisfireHandlingPolicy()
      Description copied from interface: Trigger
      Tell the scheduler how to handle jobs that were not executed in time.
      Specified by:
      getMisfireHandlingPolicy in interface Trigger
      Returns:
      the MisfireHandlingPolicy for this trigger