Class AsyncRabbitTemplate.RabbitFuture<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      RabbitFuture​(java.lang.String correlationId, org.springframework.amqp.core.Message requestMessage)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean cancel​(boolean mayInterruptIfRunning)  
      org.springframework.util.concurrent.ListenableFuture<java.lang.Boolean> getConfirm()
      When confirms are enabled contains a ListenableFuture for the confirmation.
      java.lang.String getNackCause()
      When confirms are enabled and a nack is received, contains the cause for the nack, if any.
      • Methods inherited from class org.springframework.util.concurrent.SettableListenableFuture

        addCallback, addCallback, completable, get, get, interruptTask, isCancelled, isDone, set, setException
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RabbitFuture

        public RabbitFuture​(java.lang.String correlationId,
                            org.springframework.amqp.core.Message requestMessage)
    • Method Detail

      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
        Specified by:
        cancel in interface java.util.concurrent.Future<T>
        Overrides:
        cancel in class org.springframework.util.concurrent.SettableListenableFuture<T>
      • getConfirm

        public org.springframework.util.concurrent.ListenableFuture<java.lang.Boolean> getConfirm()
        When confirms are enabled contains a ListenableFuture for the confirmation.
        Returns:
        the future.
      • getNackCause

        public java.lang.String getNackCause()
        When confirms are enabled and a nack is received, contains the cause for the nack, if any.
        Returns:
        the cause.