Interface TaskBuilder.DelayedTime

All Superinterfaces:
ContextualPromiseBuilder, TaskBuilder.Delayed
Enclosing interface:
TaskBuilder

public static interface TaskBuilder.DelayedTime extends TaskBuilder.Delayed
  • Method Summary

    Modifier and Type
    Method
    Description
    every(long duration, TimeUnit unit)
    Marks that the new task should repeat on the specified interval, and returns the next builder in the chain.

    Methods inherited from interface dev.demeng.pluginbase.scheduler.builder.ContextualPromiseBuilder

    call, run, supply
  • Method Details

    • every

      @NotNull @NotNull ContextualTaskBuilder every(long duration, TimeUnit unit)
      Marks that the new task should repeat on the specified interval, and returns the next builder in the chain.
      Parameters:
      duration - the duration to wait between executions
      unit - the units of the duration
      Returns:
      a delayed builder