T
- the type.public abstract class AsyncRabbitTemplate.RabbitFuture<T> extends SettableListenableFuture<T>
ListenableFuture
s returned by AsyncRabbitTemplate
.Constructor and Description |
---|
RabbitFuture(String correlationId,
Message requestMessage) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
ListenableFuture<Boolean> |
getConfirm()
When confirms are enabled contains a
ListenableFuture
for the confirmation. |
String |
getNackCause()
When confirms are enabled and a nack is received, contains
the cause for the nack, if any.
|
addCallback, addCallback, completable, get, get, interruptTask, isCancelled, isDone, set, setException
public boolean cancel(boolean mayInterruptIfRunning)
public ListenableFuture<Boolean> getConfirm()
ListenableFuture
for the confirmation.public String getNackCause()