public interface Delivery
Modifier and Type | Method and Description |
---|---|
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.
|
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()
Copyright © 2013 The Apache Software Foundation. All rights reserved.