Interface FutureUtils.Completer<T>

  • Enclosing class:
    FutureUtils
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface FutureUtils.Completer<T>
    Allows to complete futures.
    • Method Detail

      • completeNowOrLater

        void completeNowOrLater​(CompletableFuture<T> future)
                         throws Exception
        Complete the given future either immediately or trigger its asynchronous completion.

        Invocations of this method execute on a separate thread pool and may block.

        Throws:
        Exception