Interface FutureCompletionStage<V>

  • Type Parameters:
    V - the value type.
    All Superinterfaces:
    CompletionStage<V>, Future<V>
    All Known Implementing Classes:
    DefaultPromise

    public interface FutureCompletionStage<V>
    extends CompletionStage<V>, Future<V>
    A CompletionStage that provides the same threading semantics and guarantees as the underlying Future, which means that all the callbacks will be executed by executor() if not specified otherwise (by calling the corresponding *Async methods).

    This interface also extends Future, to provide blocking methods for awaiting the result of the future. This is in contrast to the Netty Future, which is entirely non-blocking.

    Please be aware that toCompletableFuture() is not supported and so will throw an UnsupportedOperationException when invoked.