Class ClientDeliveryState.ClientRejected

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

public static class ClientDeliveryState.ClientRejected extends ClientDeliveryState implements Rejected
Client defined Rejected delivery state definition
  • Constructor Details

    • ClientRejected

      public ClientRejected(String condition, String description)
      Create a new Rejected outcome with the given description of the rejection cause.
      Parameters:
      condition - the condition that defines the rejection outcome.
      description - the description of the underlying cause of the rejection.
    • ClientRejected

      public ClientRejected(String condition, String description, Map<String,Object> info)
      Create a new Rejected outcome with the given description of the rejection cause.
      Parameters:
      condition - the condition that defines the rejection outcome.
      description - the description of the underlying cause of the rejection.
      info - additional information to be provide to the remote about the rejection.
  • Method Details

    • getCondition

      public String getCondition()
      Specified by:
      getCondition in interface Rejected
      Returns:
      the symbolic value that indicates the error condition
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface Rejected
      Returns:
      the error description that provides supplementary details
    • getInfo

      public Map<String,Object> getInfo()
      Specified by:
      getInfo in interface Rejected
      Returns:
      a Map carrying additional information about the error condition