Class ScheduledFutureImpl<T>

java.lang.Object
io.atomix.utils.concurrent.ScheduledFutureImpl<T>
All Implemented Interfaces:
Scheduled

public final class ScheduledFutureImpl<T> extends Object implements Scheduled
Simple wrapper class that delegates to a non-interruptible future
  • Constructor Details

    • ScheduledFutureImpl

      public ScheduledFutureImpl(Future<T> future)
  • Method Details

    • cancel

      public void cancel()
      Description copied from interface: Scheduled
      Cancels the scheduled task.
      Specified by:
      cancel in interface Scheduled
    • isDone

      public boolean isDone()
      Description copied from interface: Scheduled
      Returns whether this scheduled entity was already completed or not, regardless of if it was cancelled or successfully executed.
      Specified by:
      isDone in interface Scheduled
      Returns:
      true if already completed, false otherwise