Annotation Interface FixedRate


@Retention(RUNTIME) @Target(METHOD) public @interface FixedRate
Scheduled to be invoked periodically at fixed rate. Value is interpreted as seconds by default, can be overridden by timeUnit().
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    long
    Fixed rate for periodical invocation.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    long
    Initial delay of the first invocation.
    Time unit for interpreting supplied values.
  • Element Details

    • value

      long value
      Fixed rate for periodical invocation.
      Returns:
      fixed rate interval
    • initialDelay

      long initialDelay
      Initial delay of the first invocation.
      Returns:
      initial delay
      Default:
      0L
    • timeUnit

      TimeUnit timeUnit
      Time unit for interpreting supplied values.
      Returns:
      time unit for evaluating supplied values
      Default:
      SECONDS