Class ScheduledTask

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String id
      private final CronExpression schedule
    • Constructor Summary

      Constructors 
      Constructor Description
      ScheduledTask(String id, CronExpression schedule)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getId()
      final CronExpression getSchedule() CronExpression uses default time zone by default.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScheduledTask

        ScheduledTask(String id, CronExpression schedule)
    • Method Detail

      • getSchedule

         final CronExpression getSchedule()

        CronExpression uses default time zone by default. We experienced problems with that when target application was running on a machine which default time zone differed from the target application time zone.

        That's why it's mandatory to specify time zone in this argument.