Class ClientDeliverable<DeliveryType,ReceiverType extends ClientReceiverLinkType>
- java.lang.Object
-
- org.apache.qpid.protonj2.client.impl.ClientDeliverable<DeliveryType,ReceiverType>
-
- Type Parameters:
DeliveryType
- The client delivery type streamed or non-streamedReceiverType
- The client receiver type streaming or non-streaming
- Direct Known Subclasses:
ClientDelivery
,ClientStreamDelivery
public abstract class ClientDeliverable<DeliveryType,ReceiverType extends ClientReceiverLinkType> extends Object
Abstract type that implements some of the common portions of a delivery wrapper type.
-
-
Field Summary
Fields Modifier and Type Field Description protected IncomingDelivery
delivery
protected ReceiverType
receiver
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DeliveryType
accept()
DeliveryType
disposition(DeliveryState state, boolean settle)
int
messageFormat()
DeliveryType
modified(boolean deliveryFailed, boolean undeliverableHere)
DeliveryType
reject(String condition, String description)
DeliveryType
release()
boolean
remoteSettled()
DeliveryState
remoteState()
protected abstract DeliveryType
self()
DeliveryType
settle()
boolean
settled()
DeliveryState
state()
-
-
-
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(String condition, 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()
-
-