Class TaskManager.BoundTask

java.lang.Object
com.ultikits.ultitools.manager.TaskManager.BoundTask
Enclosing class:
TaskManager

static final class TaskManager.BoundTask extends Object
Per-method record of one config-bound Scheduled task: what to invoke, where its bound values come from, its current timing in ticks, when it was armed and last ran, and its current Bukkit task. Mutated only on the main thread: a bound task is never async.
  • Field Details

    • bean

      final Object bean
    • method

      final Method method
    • scheduled

      final Scheduled scheduled
    • owner

      final String owner
    • periodSource

      final ConfigBindings.Source periodSource
    • delaySource

      final ConfigBindings.Source delaySource
    • periodTicks

      long periodTicks
    • delayTicks

      long delayTicks
    • armTick

      int armTick
      Tick the task was first armed at load; the anchor for "arm tick + new delay".
    • hasRun

      boolean hasRun
      Whether the task has run at least once. Kept apart from lastFireTick because every int is a real tick -- Integer.MIN_VALUE included, right after the counter wraps -- so no tick value can double as "never ran" (Codex round 8 on #536).
    • lastFireTick

      int lastFireTick
      Observed start of the last run, stamped on the main thread; meaningful only when hasRun.
    • task

      org.bukkit.scheduler.BukkitTask task
  • Constructor Details

  • Method Details