Delivery

A delivery of a message on a particular link.

Whilst a message is logically a long-lived object, a delivery is short-lived - it is only intended to be used by the application until it is settled and all its data has been read.

Members

Functions

available
int available()

Returns the number of bytes currently available for this delivery, which may not be complete yet, that are still to either be received by the application or sent by the transport.

clear
void clear()
Undocumented in source.
disposition
void disposition(DeliveryState state)

updates the state of the delivery

free
void free()

TODO When does an application call this method? Do we really need this?

getContext
Object getContext()
Undocumented in source.
getDefaultDeliveryState
DeliveryState getDefaultDeliveryState()
Undocumented in source.
getLink
Link getLink()
Undocumented in source.
getLocalState
DeliveryState getLocalState()
Undocumented in source.
getMessageFormat
int getMessageFormat()

Gets the message-format for this Delivery, representing the 32bit value using an int.

getRemoteState
DeliveryState getRemoteState()
Undocumented in source.
getTag
byte[] getTag()
Undocumented in source.
getWorkNext
Delivery getWorkNext()

@see Connection#getWorkHead()

isAborted
bool isAborted()

Check for whether the delivery was aborted.

isBuffered
bool isBuffered()
Undocumented in source.
isPartial
bool isPartial()

Check for whether the delivery is still partial.

isReadable
bool isReadable()

Returns whether this delivery has data ready to be received.

isSettled
bool isSettled()

Returns whether this delivery has been settled.

isUpdated
bool isUpdated()

Returns whether this delivery's state or settled flag has ever remotely changed.

isWritable
bool isWritable()
Undocumented in source.
next
Delivery next()
Undocumented in source.
pending
int pending()
Undocumented in source.
remotelySettled
bool remotelySettled()
Undocumented in source.
setContext
void setContext(Object o)
Undocumented in source.
setDefaultDeliveryState
void setDefaultDeliveryState(DeliveryState state)

Configures a default DeliveryState to be used if a received delivery is settled/freed without any disposition state having been previously applied.

setMessageFormat
void setMessageFormat(int messageFormat)

Sets the message-format for this Delivery, representing the 32bit value using an int.

settle
void settle()

Settles this delivery.

Inherited Members

From Extendable

attachments
Record attachments()
Undocumented in source.

Meta