package com.codingchili.core.Context;

import io.vertx.core.Future;

/**
 * @author Robin Duda
 */
public class Delay {
    private static CoreContext context;

    public static void initialize(CoreContext context) {
        Delay.context = context;
    }

    private static void future(Future future, long ms) {
        context.timer(ms, handler -> {
            future.complete();
        });
    }

    public static void forShutdown(Future<Void> future) {
        Delay.future(future, context.system().getShutdownLogTimeout());
    }
}

@@ -94,71 +94,300 @@
 a%0A *
-/%0Apublic class Delay %7B%0A    private static CoreContext context;%0A
+%0A * Delays given futures to allow for cleanup or to implement backoff timers.%0A */%0Apublic class Delay %7B%0A    private static CoreContext context;%0A%0A    /**%0A     * Initializes the delay system with a core context.%0A     * @param context containing timer implementation to use when delaying.%0A     */
 %0A   
@@ -622,24 +622,181 @@
  %7D);%0A    %7D%0A%0A
+    /**%0A     * Delays the given future with the shutdown-log timeout defined in system configuration.%0A     * @param future the future to be delayed.%0A     */%0A
     public s

Add JavaDoc to Delay