Interface FixedRateInvocation

All Superinterfaces:
Invocation

public interface FixedRateInvocation extends Invocation
Specific method invocation metadata for scheduled task.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
    use interval() instead
    default Duration
    Delay the first invocation by the specified time.
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
    use delayBy() instead
    default Duration
    Interval between two invocations.
    Deprecated, for removal: This API element is subject to removal in a future version.
    use either delayBy() or interval() instead

    Methods inherited from interface io.helidon.scheduling.Invocation

    description, iteration
  • Method Details

    • delayBy

      default Duration delayBy()
      Delay the first invocation by the specified time.
      Returns:
      delay of the first invocation
    • interval

      default Duration interval()
      Interval between two invocations.
      Returns:
      interval between invocations
    • initialDelay

      @Deprecated(forRemoval=true, since="4.3.0") long initialDelay()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use delayBy() instead
      Initial delay before the very first invocation.
      Returns:
      delay in units specified by timeUnit()
    • delay

      @Deprecated(forRemoval=true, since="4.3.0") long delay()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use interval() instead
      Delay before next invocation.
      Returns:
      delay in units specified by timeUnit()
    • timeUnit

      @Deprecated(forRemoval=true, since="4.3.0") TimeUnit timeUnit()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use either delayBy() or interval() instead
      Time unit used for interpreting initialDelay() and delay().
      Returns:
      used time unit