Class ClientDeliverable<DeliveryType,ReceiverType extends ClientReceiverLinkType>
- java.lang.Object
-
- org.apache.qpid.protonj2.client.impl.ClientDeliverable<DeliveryType,ReceiverType>
-
- Direct Known Subclasses:
ClientDelivery,ClientStreamDelivery
public abstract class ClientDeliverable<DeliveryType,ReceiverType extends ClientReceiverLinkType> extends java.lang.ObjectAbstract type that implements some of the common portions of a delivery wrapper type.
-
-
Field Summary
Fields Modifier and Type Field Description protected IncomingDeliverydeliveryprotected ReceiverTypereceiver
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DeliveryTypeaccept()DeliveryTypedisposition(DeliveryState state, boolean settle)intmessageFormat()DeliveryTypemodified(boolean deliveryFailed, boolean undeliverableHere)DeliveryTypereject(java.lang.String condition, java.lang.String description)DeliveryTyperelease()booleanremoteSettled()DeliveryStateremoteState()protected abstract DeliveryTypeself()DeliveryTypesettle()booleansettled()DeliveryStatestate()
-
-
-
Field Detail
-
receiver
protected final ReceiverType extends ClientReceiverLinkType receiver
-
delivery
protected final IncomingDelivery delivery
-
-
Method Detail
-
self
protected abstract DeliveryType self()
-
accept
public DeliveryType accept() throws ClientException
- Throws:
ClientException
-
release
public DeliveryType release() throws ClientException
- Throws:
ClientException
-
reject
public DeliveryType reject(java.lang.String condition, java.lang.String description) throws ClientException
- Throws:
ClientException
-
modified
public DeliveryType modified(boolean deliveryFailed, boolean undeliverableHere) throws ClientException
- Throws:
ClientException
-
disposition
public DeliveryType disposition(DeliveryState state, boolean settle) throws ClientException
- Throws:
ClientException
-
settle
public DeliveryType settle() throws ClientException
- Throws:
ClientException
-
state
public DeliveryState state()
-
remoteState
public DeliveryState remoteState()
-
remoteSettled
public boolean remoteSettled()
-
messageFormat
public int messageFormat()
-
settled
public boolean settled()
-
-