Class ClientDelivery

  • All Implemented Interfaces:
    Delivery

    public final class ClientDelivery
    extends java.lang.Object
    implements Delivery
    Client inbound delivery object.
    • Method Detail

      • reject

        public Delivery reject​(java.lang.String condition,
                               java.lang.String description)
                        throws ClientException
        Description copied from interface: Delivery
        Rejects and settles the delivery, sending supplied error information along with the rejection.
        Specified by:
        reject in interface Delivery
        Parameters:
        condition - The error condition value to supply with the rejection.
        description - The error description value to supply with the rejection.
        Returns:
        this Delivery instance.
        Throws:
        ClientException - if an error occurs while sending the disposition
      • modified

        public Delivery modified​(boolean deliveryFailed,
                                 boolean undeliverableHere)
                          throws ClientException
        Description copied from interface: Delivery
        Modifies and settles the delivery.
        Specified by:
        modified in interface Delivery
        Parameters:
        deliveryFailed - Indicates if the modified delivery failed.
        undeliverableHere - Indicates if the modified delivery should not be returned here again.
        Returns:
        this Delivery instance.
        Throws:
        ClientException - if an error occurs while sending the disposition
      • state

        public DeliveryState state()
        Description copied from interface: Delivery
        Gets the current local state for the delivery.
        Specified by:
        state in interface Delivery
        Returns:
        the delivery state
      • remoteState

        public DeliveryState remoteState()
        Description copied from interface: Delivery
        Gets the current remote state for the delivery.
        Specified by:
        remoteState in interface Delivery
        Returns:
        the remote delivery state
      • remoteSettled

        public boolean remoteSettled()
        Description copied from interface: Delivery
        Gets whether the delivery was settled by the remote peer yet.
        Specified by:
        remoteSettled in interface Delivery
        Returns:
        whether the delivery is remotely settled
      • messageFormat

        public int messageFormat()
        Description copied from interface: Delivery
        Gets the message format for the current delivery.
        Specified by:
        messageFormat in interface Delivery
        Returns:
        the message format
      • settled

        public boolean settled()
        Specified by:
        settled in interface Delivery
        Returns:
        true if the delivery has been locally settled.