|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface 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.
| Method Summary | |
|---|---|
void |
disposition(DeliveryState state)
updates the state of the delivery |
void |
free()
TODO When does an application call this method? Do we really need this? |
Object |
getContext()
|
Link |
getLink()
|
DeliveryState |
getLocalState()
|
int |
getMessageFormat()
TODO is this required?? |
DeliveryState |
getRemoteState()
|
byte[] |
getTag()
|
Delivery |
getWorkNext()
|
boolean |
isPartial()
|
boolean |
isReadable()
Returns whether this delivery has data ready to be received. |
boolean |
isSettled()
Returns whether this delivery has been settled. |
boolean |
isUpdated()
Returns whether this delivery's state or settled flag has ever remotely changed. |
boolean |
isWritable()
|
int |
pending()
|
boolean |
remotelySettled()
|
void |
setContext(Object o)
|
void |
settle()
Settles this delivery. |
| Method Detail |
|---|
byte[] getTag()
Link getLink()
DeliveryState getLocalState()
DeliveryState getRemoteState()
int getMessageFormat()
void disposition(DeliveryState state)
state - the new delivery statevoid settle()
Connection.getWorkHead()).
If this delivery is its link's current delivery, the link's current delivery pointer is advanced.
boolean isSettled()
settle()boolean remotelySettled()
void free()
Delivery getWorkNext()
Connection.getWorkHead()boolean isWritable()
boolean isReadable()
Receiver.recv(byte[], int, int)void setContext(Object o)
Object getContext()
boolean isUpdated()
boolean isPartial()
int pending()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||