Interface Trigger


  • public interface Trigger
    Trigger is bound to a scheduled task.
    See Also:
    Scheduled
    • Method Detail

      • getNextFireTime

        Instant getNextFireTime()
        Returns:
        the next time at which the trigger is scheduled to fire, or null if it will not fire again
      • getPreviousFireTime

        Instant getPreviousFireTime()
        Returns:
        the previous time at which the trigger fired, or null if it has not fired yet
      • isOverdue

        boolean isOverdue()
        The grace period is configurable with Scheduled.overdueGracePeriod().

        Skipped executions are not considered as overdue.

        Returns:
        false if the last execution took place between the expected execution time and the end of the grace period, true otherwise
        See Also:
        Scheduled.overdueGracePeriod()
      • getMethodDescription

        default String getMethodDescription()
        Returns:
        the method description or null for a trigger of a programmatically added job