Class Delay

java.lang.Object
com.codingchili.core.context.Delay

public abstract class Delay extends Object
Delays given futures to allow for cleanup or to implement backoff timers.
  • Constructor Details

    • Delay

      public Delay()
  • Method Details

    • forMS

      public static void forMS(io.vertx.core.Promise<Void> future, long ms)
      Delays the given future for the specified ms.
      Parameters:
      future - the future to be delayed.
      ms - milliseconds to wait before completing the future.