public interface Sender extends Link
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Abort the current delivery.
|
boolean |
advance()
Attempts to advance the current delivery.
|
void |
offer(int credits)
indicates pending deliveries
|
int |
send(byte[] bytes,
int offset,
int length)
Sends some data for the current delivery.
|
int |
send(ReadableBuffer buffer)
Sends some data for the current delivery.
|
current, delivery, delivery, detach, detached, drained, getCredit, getDesiredCapabilities, getDrain, getName, getOfferedCapabilities, getProperties, getQueued, getReceiverSettleMode, getRemoteCredit, getRemoteDesiredCapabilities, getRemoteOfferedCapabilities, getRemoteProperties, getRemoteReceiverSettleMode, getRemoteSenderSettleMode, getRemoteSource, getRemoteTarget, getSenderSettleMode, getSession, getSource, getTarget, getUnsettled, head, next, setDesiredCapabilities, setOfferedCapabilities, setProperties, setReceiverSettleMode, setRemoteSenderSettleMode, setSenderSettleMode, setSource, setTargetclose, free, getCondition, getContext, getLocalState, getRemoteCondition, getRemoteState, open, setCondition, setContextattachmentsvoid offer(int credits)
credits - the number of pending deliveriesint send(byte[] bytes,
int offset,
int length)
bytes - the byte array containing the data to be sent.offset - the offset into the given array to start reading.length - the number of bytes to read from the given byte array.int send(ReadableBuffer buffer)
buffer - the buffer to read the data from.void abort()
boolean advance()
Delivery have been written.
The application must call this method in order for the delivery to be considered complete.advance in interface LinkTODO fully state the rules regarding when you have to call this method, what happens if you don't call it
before creating another delivery etc.Copyright © 2017 The Apache Software Foundation. All rights reserved.