Class ConfirmResult

java.lang.Object
org.acemq.amqp.transport.ConfirmResult

public final class ConfirmResult extends Object
The broker's answer to one publish.
  • Method Details

    • confirmed

      public static ConfirmResult confirmed(Duration latency)
      The broker took responsibility for the message and something was bound to receive it.
    • unroutable

      public static ConfirmResult unroutable(Duration latency, @Nullable String detail)
      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

      public static ConfirmResult failed(Duration latency, @Nullable String detail)
      The broker refused the message or never answered.
    • isConfirmed

      public boolean isConfirmed()
    • isRouted

      public boolean isRouted()
    • latency

      public Duration latency()
    • detail

      public @Nullable String detail()
      Returns:
      why the publish was unroutable or failed, when the broker said
    • toString

      public String toString()
      Overrides:
      toString in class Object