com.ibm.itim.scheduling

Interface Schedulable

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    RecurringTimeSchedule


    public interface Schedulable
    extends java.io.Serializable
    Schedulable is an interface to provide the schedule entries in the Scheduler. The implementing class of the interface must provide the next date to schedule (if any) when prompted by the schedule method call.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      long schedule(long time)
      Returns the next scheduled date in milliseconds since the epoch, or 0 if there will be no more dates to be scheduled.
    • Method Detail

      • schedule

        long schedule(long time)
        Returns the next scheduled date in milliseconds since the epoch, or 0 if there will be no more dates to be scheduled.
        Parameters:
        time - the current time in milliseconds since the epoch
        Returns:
        the scheduled date in milliseconds since the epoch, or 0 if there are no more dates to be scheduled.