Interface Trigger.TriggerAction

  • Enclosing interface:
    Trigger

    public static interface Trigger.TriggerAction
    Action to run if the trigger decides that time for execution has come.
    Since:
    taskplanner 3.0
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.util.concurrent.Future<java.lang.Void> execute​(java.util.Map<java.lang.String,​java.lang.String> triggerProperties)
      Start the task if possible.
      default void run()
      Start the task if possible.
    • Method Detail

      • execute

        java.util.concurrent.Future<java.lang.Void> execute​(@Nullable
                                                            java.util.Map<java.lang.String,​java.lang.String> triggerProperties)
        Start the task if possible.
        Parameters:
        triggerProperties - optional properties of the trigger (values of placeholders)
        Returns:
        a reference to the running task job or null if the start is failing.
        Since:
        20.4
      • run

        default void run()
        Start the task if possible.