T
- the type.public abstract class AsyncRabbitTemplate.RabbitFuture<T>
extends org.springframework.util.concurrent.SettableListenableFuture<T>
ListenableFuture
s returned by AsyncRabbitTemplate
.Constructor and Description |
---|
RabbitFuture(java.lang.String correlationId,
org.springframework.amqp.core.Message requestMessage) |
Modifier and Type | Method and 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.
|
public RabbitFuture(java.lang.String correlationId, org.springframework.amqp.core.Message requestMessage)
public boolean cancel(boolean mayInterruptIfRunning)
public org.springframework.util.concurrent.ListenableFuture<java.lang.Boolean> getConfirm()
ListenableFuture
for the confirmation.public java.lang.String getNackCause()