public interface ProtonSender extends ProtonLink<ProtonSender>
Modifier and Type | Method and Description |
---|---|
int |
drained()
Manually mark the link drained, such that if the receiver has requested the link be drained (as indicated by the
value of the
ProtonLink.getDrain() flag) then any remaining credit is discarded and if necessary notice sent to the
receiver indicating it has been. |
boolean |
isAutoDrained()
Get whether the link will automatically be marked drained after the send queue drain handler fires in drain mode.
|
boolean |
isAutoSettle()
Get whether the receiver is auto settling deliveries.
|
ProtonDelivery |
send(byte[] tag,
org.apache.qpid.proton.message.Message message)
Send the given message, using the supplied delivery tag when creating the delivery.
|
ProtonDelivery |
send(byte[] tag,
org.apache.qpid.proton.message.Message message,
Handler<ProtonDelivery> onUpdated)
Send the given message, using the supplied delivery tag when creating the delivery, and registering the given
handler to be called whenever the related delivery is updated due to receiving disposition frames from the peer.
|
ProtonDelivery |
send(org.apache.qpid.proton.message.Message message)
Send the given message.
|
ProtonDelivery |
send(org.apache.qpid.proton.message.Message message,
Handler<ProtonDelivery> onUpdated)
Send the given message, registering the given handler to be called whenever the related delivery is updated due to
receiving disposition frames from the peer.
|
ProtonSender |
sendQueueDrainHandler(Handler<ProtonSender> handler)
Sets a handler called when the send queue is not full, i.e.
|
boolean |
sendQueueFull()
Gets whether the senders outgoing send queue is full, i.e.
|
ProtonSender |
setAutoDrained(boolean autoDrained)
Sets whether the link is automatically marked
drained() after the send queue drain handler callback
returns if the receiving peer requested that credit be drained, as indicated by the value of the
ProtonLink.getDrain() flag. |
ProtonSender |
setAutoSettle(boolean autoSettle)
Sets whether sent deliveries should be automatically locally-settled once they have become remotely-settled by the
receiving peer.
|
attachments, close, closeHandler, detach, detachHandler, free, getCondition, getCredit, getDrain, getMaxMessageSize, getName, getQoS, getQueued, getRemoteAddress, getRemoteCondition, getRemoteDesiredCapabilities, getRemoteMaxMessageSize, getRemoteOfferedCapabilities, getRemoteProperties, getRemoteQoS, getRemoteSource, getRemoteTarget, getSession, getSource, getTarget, isOpen, open, openHandler, setCondition, setDesiredCapabilities, setMaxMessageSize, setOfferedCapabilities, setProperties, setQoS, setSource, setTarget
ProtonDelivery send(org.apache.qpid.proton.message.Message message)
message
- the message to sendProtonDelivery send(org.apache.qpid.proton.message.Message message, Handler<ProtonDelivery> onUpdated)
message
- the message to sendonUpdated
- handler called when a disposition update is received for the deliveryProtonDelivery send(byte[] tag, org.apache.qpid.proton.message.Message message)
tag
- the tag to use for the delivery used to send the messagemessage
- the message to sendProtonDelivery send(byte[] tag, org.apache.qpid.proton.message.Message message, Handler<ProtonDelivery> onUpdated)
tag
- the tag to use for the delivery used to send the messagemessage
- the message to sendonUpdated
- handler called when a disposition update is received for the deliveryboolean sendQueueFull()
ProtonSender sendQueueDrainHandler(Handler<ProtonSender> handler)
handler
- the handler to process messagesProtonSender setAutoSettle(boolean autoSettle)
autoSettle
- whether deliveries should be auto settled locally after being settled by the receiverboolean isAutoSettle()
setAutoSettle(boolean)
ProtonSender setAutoDrained(boolean autoDrained)
drained()
after the send queue drain handler callback
returns if the receiving peer requested that credit be drained, as indicated by the value of the
ProtonLink.getDrain()
flag.
True by default.autoDrained
- whether the link will automatically be drained after the send queue drain handler fires in drain modeboolean isAutoDrained()
setAutoDrained(boolean)
int drained()
ProtonLink.getDrain()
flag) then any remaining credit is discarded and if necessary notice sent to the
receiver indicating it has been.
For use when isAutoDrained()
is false.setAutoDrained(boolean)
Copyright © 2020 Eclipse. All rights reserved.