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-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.qpid.protonj2.client.impl.ClientDeliveryState
ClientDeliveryState.ClientAccepted, ClientDeliveryState.ClientModified, ClientDeliveryState.ClientRejected, ClientDeliveryState.ClientReleased, ClientDeliveryState.ClientTransactionalNested classes/interfaces inherited from interface org.apache.qpid.protonj2.client.DeliveryState
DeliveryState.Type -
Constructor Summary
ConstructorsConstructorDescriptionClientModified(boolean failed, boolean undeliverable) Create a new instance with the given outcome values.ClientModified(boolean failed, boolean undeliverable, Map<String, Object> annotations) Create a new instance with the given outcome values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.qpid.protonj2.client.DeliveryState
isAccepted, isRejected, isReleased, isTransactionalMethods inherited from interface org.apache.qpid.protonj2.client.Modified
getType, isModified
-
Constructor Details
-
ClientModified
public ClientModified(boolean failed, boolean undeliverable) Create a new instance with the given outcome values.- Parameters:
failed- has the delivery failedundeliverable- is the delivery no longer deliverable to this client.
-
ClientModified
Create a new instance with the given outcome values.- Parameters:
failed- has the delivery failedundeliverable- 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:
isDeliveryFailedin interfaceModified- Returns:
trueif the disposition indicates the delivery failed
-
isUndeliverableHere
public boolean isUndeliverableHere()- Specified by:
isUndeliverableHerein interfaceModified- Returns:
trueif the disposition indicates the delivery should not be attempted again at the target
-
getMessageAnnotations
- Specified by:
getMessageAnnotationsin interfaceModified- Returns:
- a Map containing the annotations applied by the peer that created the disposition
-