Annotation Type Scheduled


  • @Documented
    @Retention(RUNTIME)
    @Target({METHOD,ANNOTATION_TYPE})
    @Executable(processOnStartup=true)
    @Repeatable(Schedules.class)
    @Parallel
    public @interface Scheduled
    An annotation for scheduling a re-occurring task.
    Since:
    1.0
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String cron  
      java.lang.String fixedDelay
      A String representation of the Duration between the time of the last execution and the beginning of the next.
      java.lang.String fixedRate
      A String representation of the Duration between executions.
      java.lang.String initialDelay
      A String representation of the Duration before starting executions.
      java.lang.String scheduler  
      java.lang.String zoneId
      A String representation of the ZoneId to base our cron expression on.
    • Element Detail

      • cron

        java.lang.String cron
        Returns:
        The CRON expression
        Default:
        ""
      • zoneId

        java.lang.String zoneId
        A String representation of the ZoneId to base our cron expression on. Defaults to ZoneId.systemDefault()
        Returns:
        The ZoneId to base the cron expression on
        Default:
        ""
      • fixedDelay

        java.lang.String fixedDelay
        A String representation of the Duration between the time of the last execution and the beginning of the next. For example 10m == 10 minutes
        Returns:
        The fixed delay
        Default:
        ""
      • initialDelay

        java.lang.String initialDelay
        A String representation of the Duration before starting executions. For example 10m == 10 minutes
        Returns:
        The fixed delay
        Default:
        ""
      • fixedRate

        java.lang.String fixedRate
        A String representation of the Duration between executions. For example 10m == 10 minutes
        Returns:
        The fixed rate
        Default:
        ""
      • scheduler

        java.lang.String scheduler
        Returns:
        The name of a Named bean that is a ScheduledExecutorService to use to schedule the task
        Default:
        "scheduled"