Class SimpleScheduler.CronTrigger

    • Method Detail

      • getNextFireTime

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

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

        public boolean isOverdue()
        Description copied from interface: Trigger
        The grace period is configurable with Scheduled.overdueGracePeriod().

        This method returns false if the last execution has been skipped.

        Returns:
        true if the last execution of the trigger is overdue, false otherwise
        See Also:
        Scheduled.overdueGracePeriod()