Class ClientDeliveryState.ClientModified

java.lang.Object
org.apache.qpid.protonj2.client.impl.ClientDeliveryState
org.apache.qpid.protonj2.client.impl.ClientDeliveryState.ClientModified
All Implemented Interfaces:
DeliveryState, Modified
Enclosing class:
ClientDeliveryState

public static class ClientDeliveryState.ClientModified extends ClientDeliveryState implements Modified
Client defined Modified delivery state definition
  • Constructor Details

    • ClientModified

      public ClientModified(boolean failed, boolean undeliverable)
      Create a new instance with the given outcome values.
      Parameters:
      failed - has the delivery failed
      undeliverable - is the delivery no longer deliverable to this client.
    • ClientModified

      public ClientModified(boolean failed, boolean undeliverable, Map<String,Object> annotations)
      Create a new instance with the given outcome values.
      Parameters:
      failed - has the delivery failed
      undeliverable - is the delivery no longer deliverable to this client.
      annotations - updated annotation values to provide to the remote.
  • Method Details

    • isDeliveryFailed

      public boolean isDeliveryFailed()
      Specified by:
      isDeliveryFailed in interface Modified
      Returns:
      true if the disposition indicates the delivery failed
    • isUndeliverableHere

      public boolean isUndeliverableHere()
      Specified by:
      isUndeliverableHere in interface Modified
      Returns:
      true if the disposition indicates the delivery should not be attempted again at the target
    • getMessageAnnotations

      public Map<String,Object> getMessageAnnotations()
      Specified by:
      getMessageAnnotations in interface Modified
      Returns:
      a Map containing the annotations applied by the peer that created the disposition