Annotation Interface ScheduledAt


Annotates a method to be executed at a fixed time of the day
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The hour of the day to run the task
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Whether the task should be executed asynchronously...
    The minute of the hour to run the task
    The second of the minute to run the task
  • Element Details

    • hour

      String hour
      The hour of the day to run the task
      Returns:
      the hour of the day to run the task
    • minute

      String minute
      The minute of the hour to run the task
      Returns:
      the minute of the hour to run the task
      Default:
      "0"
    • second

      String second
      The second of the minute to run the task
      Returns:
      the second of the minute to run the task
      Default:
      "0"
    • async

      String async
      Whether the task should be executed asynchronously...

      If the method has more than one ScheduledAt annotation, if this is set to true, all annotations will be executed asynchronously.

      Returns:
      whether the task should be executed asynchronously
      Default:
      "false"