Package org.acemq.amqp.transport
Class ConfirmResult
java.lang.Object
org.acemq.amqp.transport.ConfirmResult
The broker's answer to one publish.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfirmResultThe broker took responsibility for the message and something was bound to receive it.@Nullable Stringdetail()static ConfirmResultThe broker refused the message or never answered.booleanbooleanisRouted()latency()toString()static ConfirmResultunroutable(Duration latency, @Nullable String detail) The broker took responsibility for the message but nothing was bound to receive it.
-
Method Details
-
confirmed
The broker took responsibility for the message and something was bound to receive it. -
unroutable
The broker took responsibility for the message but nothing was bound to receive it.Reported separately from a failure because the publish did succeed; whether an unroutable message is an error is the core's decision, not the transport's.
-
failed
The broker refused the message or never answered. -
isConfirmed
public boolean isConfirmed() -
isRouted
public boolean isRouted() -
latency
-
detail
- Returns:
- why the publish was unroutable or failed, when the broker said
-
toString
-