Class DelayFuture

java.lang.Object
com.tccc.kos.commons.util.concurrent.future.FutureWork
com.tccc.kos.commons.util.concurrent.future.DelayFuture
All Implemented Interfaces:
Abortable, Cancelable, Terminable, Runnable

public class DelayFuture extends FutureWork
A future that simply delays for the specified duration but is interruptable. This is simply a convenience class for inserting delays into future sequences.
Since:
1.8
Version:
2025-06-05
  • Constructor Details

    • DelayFuture

      public DelayFuture(String name, int delay)
      Creates a future that will delay for the specified duration and then end successfully.
      Parameters:
      name - the name of this future (for diagnostics)
      delay - the delay duration in ms