Class TaskSchedule.UtcTime

  • Enclosing class:
    TaskSchedule

    public static class TaskSchedule.UtcTime
    extends TaskSchedule
    Schedule for a task that should run once at a specific UTC time.
    • Constructor Detail

      • UtcTime

        public UtcTime​(org.joda.time.DateTime time,
                       boolean exact)
        Constructs a new UTC time schedule.
        Parameters:
        time - the time when the task should run
        exact - true if the task should be run exactly at the specified time, false if it can be run later to save energy
    • Method Detail

      • getTime

        public org.joda.time.DateTime getTime()
        Returns the time when the task should run.
        Returns:
        the time when the task should run
      • isExact

        public boolean isExact()
        Returns true if the task should be run exactly at the specified time, false if it can be run later to save energy.
        Returns:
        true if the task should be run exactly at the specified time, false if it can be run later to save energy