Class CalendarBasedTimeout

java.lang.Object
org.jboss.as.ejb3.timerservice.schedule.CalendarBasedTimeout

public class CalendarBasedTimeout extends Object
CalendarBasedTimeout
Version:
$Revision: $
Author:
Jaikiran Pai, "<a href=\"mailto:wfink@redhat.com\">Wolf-Dieter Fink", Eduardo Martins
  • Constructor Details

    • CalendarBasedTimeout

      public CalendarBasedTimeout(jakarta.ejb.ScheduleExpression schedule)
      Creates a CalendarBasedTimeout from the passed schedule.

      This constructor parses the passed ScheduleExpression and sets up its internal representation of the same.

      Parameters:
      schedule - The schedule
    • CalendarBasedTimeout

      public CalendarBasedTimeout(Second second, Minute minute, Hour hour, DayOfMonth dayOfMonth, Month month, DayOfWeek dayOfWeek, Year year, TimeZone timezone, Date start, Date end)
  • Method Details

    • doesScheduleMatch

      public static boolean doesScheduleMatch(jakarta.ejb.ScheduleExpression expression1, jakarta.ejb.ScheduleExpression expression2)
    • getNextTimeout

      public Calendar getNextTimeout()
    • getFirstTimeout

      public Calendar getFirstTimeout()
      Returns:
    • getScheduleExpression

      public jakarta.ejb.ScheduleExpression getScheduleExpression()
      Returns the original ScheduleExpression from which this CalendarBasedTimeout was created.
      Returns:
    • getNextTimeout

      public Calendar getNextTimeout(Calendar currentCal)