java.lang.Object
com.kosdev.kos.commons.util.concurrent.future.FutureWork
com.kosdev.kos.commons.util.concurrent.future.DelayFuture
All Implemented Interfaces:
Abortable, AttributeAware, Cancelable, ClientAttributeAware, 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:
8
Version:
8
  • 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
      Since:
      8