|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Receiver
Receiver
| Method Summary | |
|---|---|
boolean |
advance()
Attempts to advance the current delivery. |
void |
drain(int credit)
|
void |
flow(int credits)
Adds the specified number of credits. |
int |
recv(byte[] bytes,
int offset,
int size)
Receive message data for the current delivery. |
| Methods inherited from interface org.apache.qpid.proton.engine.Link |
|---|
current, delivery, delivery, getCredit, getName, getQueued, getReceiverSettleMode, getRemoteReceiverSettleMode, getRemoteSenderSettleMode, getRemoteSource, getRemoteTarget, getSenderSettleMode, getSession, getSource, getTarget, getUnsettled, next, setReceiverSettleMode, setRemoteSenderSettleMode, setSenderSettleMode, setSource, setTarget, unsettled |
| Methods inherited from interface org.apache.qpid.proton.engine.Endpoint |
|---|
close, free, getCondition, getContext, getLocalState, getRemoteCondition, getRemoteState, open, setCondition, setContext |
| Method Detail |
|---|
void flow(int credits)
credits more deliveries.
int recv(byte[] bytes,
int offset,
int size)
Delivery.isPartial(). If
the delivery is partial, the caller should call recv(byte[], int, int) again to receive
the additional bytes once the Delivery appears again on the Connection work-list.
TODO might the flags other than IO_WORK in DeliveryImpl also prevent the work list being pruned?
e.g. what if a slow JMS consumer receives a disposition frame containing state=RELEASED? This is not IO_WORK.
bytes - the destination array where the message data is writtenoffset - index in the array to start writing data atsize - the maximum number of bytes to write
Link.current()void drain(int credit)
boolean advance()
advance in interface Link
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||