Class RequestReplyMessageFuture.Completable

  • All Implemented Interfaces:
    java.util.concurrent.CompletionStage<org.springframework.messaging.Message<?>>, java.util.concurrent.Future<org.springframework.messaging.Message<?>>
    Direct Known Subclasses:
    RequestReplyTypedMessageFuture.Completable
    Enclosing class:
    RequestReplyMessageFuture<K,​V>

    public class RequestReplyMessageFuture.Completable
    extends java.util.concurrent.CompletableFuture<org.springframework.messaging.Message<?>>
    A CompletableFuture version.
    Since:
    2.9
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture

        java.util.concurrent.CompletableFuture.AsynchronousCompletionTask
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean cancel​(boolean mayInterruptIfRunning)  
      java.util.concurrent.CompletableFuture<SendResult<K,​V>> getSendFuture()
      Return the send future as a CompletableFuture.
      • Methods inherited from class java.util.concurrent.CompletableFuture

        acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getSendFuture

        public java.util.concurrent.CompletableFuture<SendResult<K,​V>> getSendFuture()
        Return the send future as a CompletableFuture.
        Returns:
        the send future.
      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
        Specified by:
        cancel in interface java.util.concurrent.Future<org.springframework.messaging.Message<?>>
        Overrides:
        cancel in class java.util.concurrent.CompletableFuture<org.springframework.messaging.Message<?>>