DeliveryImpl

Undocumented in source.
class DeliveryImpl : Delivery {}

Constructors

this
this(byte[] tag, LinkImpl link, DeliveryImpl previous)
Undocumented in source.

Members

Functions

addToTransportWorkList
void addToTransportWorkList()
Undocumented in source. Be warned that the author may not have intended to support it.
afterSend
void afterSend()
Undocumented in source. Be warned that the author may not have intended to support it.
append
void append(Binary payload)
Undocumented in source. Be warned that the author may not have intended to support it.
append
void append(byte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
attachments
Record attachments()
Undocumented in source. Be warned that the author may not have intended to support it.
available
int available()
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
clearTransportWork
DeliveryImpl clearTransportWork()
Undocumented in source. Be warned that the author may not have intended to support it.
disposition
void disposition(DeliveryState state)
Undocumented in source. Be warned that the author may not have intended to support it.
free
void free()
Undocumented in source. Be warned that the author may not have intended to support it.
getContext
Object getContext()
Undocumented in source. Be warned that the author may not have intended to support it.
getData
ReadableBuffer getData()
Undocumented in source. Be warned that the author may not have intended to support it.
getDataLength
int getDataLength()
Undocumented in source. Be warned that the author may not have intended to support it.
getDefaultDeliveryState
DeliveryState getDefaultDeliveryState()
Undocumented in source. Be warned that the author may not have intended to support it.
getLink
LinkImpl getLink()
Undocumented in source. Be warned that the author may not have intended to support it.
getLinkNext
DeliveryImpl getLinkNext()
Undocumented in source. Be warned that the author may not have intended to support it.
getLinkPrevious
DeliveryImpl getLinkPrevious()
Undocumented in source. Be warned that the author may not have intended to support it.
getLocalState
DeliveryState getLocalState()
Undocumented in source. Be warned that the author may not have intended to support it.
getMessageFormat
int getMessageFormat()
Undocumented in source. Be warned that the author may not have intended to support it.
getRemoteState
DeliveryState getRemoteState()
Undocumented in source. Be warned that the author may not have intended to support it.
getTag
byte[] getTag()
Undocumented in source. Be warned that the author may not have intended to support it.
getTransportDelivery
TransportDelivery getTransportDelivery()
Undocumented in source. Be warned that the author may not have intended to support it.
getTransportWorkNext
DeliveryImpl getTransportWorkNext()
Undocumented in source. Be warned that the author may not have intended to support it.
getTransportWorkPrev
DeliveryImpl getTransportWorkPrev()
Undocumented in source. Be warned that the author may not have intended to support it.
getWorkNext
DeliveryImpl getWorkNext()
Undocumented in source. Be warned that the author may not have intended to support it.
getWorkPrev
DeliveryImpl getWorkPrev()
Undocumented in source. Be warned that the author may not have intended to support it.
isAborted
bool isAborted()
Undocumented in source. Be warned that the author may not have intended to support it.
isBuffered
bool isBuffered()
Undocumented in source. Be warned that the author may not have intended to support it.
isDone
bool isDone()
Undocumented in source. Be warned that the author may not have intended to support it.
isPartial
bool isPartial()
Undocumented in source. Be warned that the author may not have intended to support it.
isReadable
bool isReadable()
Undocumented in source. Be warned that the author may not have intended to support it.
isSettled
bool isSettled()
Undocumented in source. Be warned that the author may not have intended to support it.
isUpdated
bool isUpdated()
Undocumented in source. Be warned that the author may not have intended to support it.
isWritable
bool isWritable()
Undocumented in source. Be warned that the author may not have intended to support it.
next
DeliveryImpl next()
Undocumented in source. Be warned that the author may not have intended to support it.
pending
int pending()
Undocumented in source. Be warned that the author may not have intended to support it.
recv
int recv(byte[] bytes, int offset, int size)
Undocumented in source. Be warned that the author may not have intended to support it.
recv
int recv(WritableBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
recv
ReadableBuffer recv()
Undocumented in source. Be warned that the author may not have intended to support it.
remotelySettled
bool remotelySettled()
Undocumented in source. Be warned that the author may not have intended to support it.
send
int send(byte[] bytes, int offset, int length)
Undocumented in source. Be warned that the author may not have intended to support it.
send
int send(ReadableBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
sendNoCopy
int sendNoCopy(ReadableBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
setAborted
void setAborted()
Undocumented in source. Be warned that the author may not have intended to support it.
setComplete
void setComplete()
Undocumented in source. Be warned that the author may not have intended to support it.
setContext
void setContext(Object context)
Undocumented in source. Be warned that the author may not have intended to support it.
setDefaultDeliveryState
void setDefaultDeliveryState(DeliveryState state)
Undocumented in source. Be warned that the author may not have intended to support it.
setDone
void setDone()
Undocumented in source. Be warned that the author may not have intended to support it.
setMessageFormat
void setMessageFormat(int messageFormat)
Undocumented in source. Be warned that the author may not have intended to support it.
setRemoteDeliveryState
void setRemoteDeliveryState(DeliveryState remoteDeliveryState)
Undocumented in source. Be warned that the author may not have intended to support it.
setRemoteSettled
void setRemoteSettled(bool remoteSettled)
Undocumented in source. Be warned that the author may not have intended to support it.
setTransportDelivery
void setTransportDelivery(TransportDelivery transportDelivery)
Undocumented in source. Be warned that the author may not have intended to support it.
setTransportWorkNext
void setTransportWorkNext(DeliveryImpl transportWorkNext)
Undocumented in source. Be warned that the author may not have intended to support it.
setTransportWorkPrev
void setTransportWorkPrev(DeliveryImpl transportWorkPrev)
Undocumented in source. Be warned that the author may not have intended to support it.
setWorkNext
void setWorkNext(DeliveryImpl workNext)
Undocumented in source. Be warned that the author may not have intended to support it.
setWorkPrev
void setWorkPrev(DeliveryImpl workPrev)
Undocumented in source. Be warned that the author may not have intended to support it.
settle
void settle()
Undocumented in source. Be warned that the author may not have intended to support it.
updateWork
void updateWork()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

EMPTY_BUFFER
ReadableBuffer EMPTY_BUFFER()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

DEFAULT_MESSAGE_FORMAT
int DEFAULT_MESSAGE_FORMAT;
Undocumented in source.

Variables

_transportWork
bool _transportWork;
Undocumented in source.
_work
bool _work;
Undocumented in source.

Inherited Members

From Delivery

getTag
byte[] getTag()
Undocumented in source.
getLink
Link getLink()
Undocumented in source.
getLocalState
DeliveryState getLocalState()
Undocumented in source.
getRemoteState
DeliveryState getRemoteState()
Undocumented in source.
disposition
void disposition(DeliveryState state)

updates the state of the delivery

settle
void settle()

Settles this delivery.

isSettled
bool isSettled()

Returns whether this delivery has been settled.

remotelySettled
bool remotelySettled()
Undocumented in source.
free
void free()

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

getWorkNext
Delivery getWorkNext()

@see Connection#getWorkHead()

next
Delivery next()
Undocumented in source.
isWritable
bool isWritable()
Undocumented in source.
isReadable
bool isReadable()

Returns whether this delivery has data ready to be received.

setContext
void setContext(Object o)
Undocumented in source.
getContext
Object getContext()
Undocumented in source.
isUpdated
bool isUpdated()

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

clear
void clear()
Undocumented in source.
isPartial
bool isPartial()

Check for whether the delivery is still partial.

isAborted
bool isAborted()

Check for whether the delivery was aborted.

pending
int pending()
Undocumented in source.
isBuffered
bool isBuffered()
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.

getDefaultDeliveryState
DeliveryState getDefaultDeliveryState()
Undocumented in source.
setMessageFormat
void setMessageFormat(int messageFormat)

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

getMessageFormat
int getMessageFormat()

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

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.

Meta