Interface ScheduledUpdate<T>

  • All Superinterfaces:
    Locatable

    public interface ScheduledUpdate<T>
    extends Locatable
    Represents a scheduled block update. SBUs with higher priorities are processed first.
    • Method Detail

      • target

        T target()
        Gets the target of this scheduled update.
        Returns:
        The target
      • delay

        java.time.Duration delay()
        Gets the delay until this update should cause the block to update.
        Returns:
        The delay until this SBU should cause the block to update
      • priority

        TaskPriority priority()
        Gets the priority of this scheduled block update.
        Returns:
        The priority of this scheduled block update
      • cancel

        boolean cancel()
        Cancels this scheduled update.
        Returns:
        Returns if the scheduled update was successfully cancelled