AckedReceiveBuffer
Implements an immutable receive buffer that buffers incoming messages until they can be safely delivered. This buffer works together with a akka.remote.AckedSendBuffer on the sender() side.
- Value parameters:
- buf
Buffer of messages that are waiting for delivery
- cumulativeAck
The highest sequence number received so far.
- lastDelivered
Sequence number of the last message that has been delivered.
- Deprecated
- Source:
- AckedDelivery.scala
Value members
Concrete methods
Extract all messages that could be safely delivered, an updated ack to be sent to the sender(), and an updated buffer that has the messages removed that can be delivered.
Extract all messages that could be safely delivered, an updated ack to be sent to the sender(), and an updated buffer that has the messages removed that can be delivered.
- Returns:
Triplet of the updated buffer, messages that can be delivered and the updated acknowledgement.
- Source:
- AckedDelivery.scala
Merges two receive buffers. Merging preserves sequencing of messages, and drops all messages that has been safely acknowledged by any of the participating buffers. Also updates the expected sequence numbers.
Merges two receive buffers. Merging preserves sequencing of messages, and drops all messages that has been safely acknowledged by any of the participating buffers. Also updates the expected sequence numbers.
- Value parameters:
- that
The receive buffer to merge with
- Returns:
The merged receive buffer.
- Source:
- AckedDelivery.scala
Puts a sequenced message in the receive buffer returning a new buffer.
Puts a sequenced message in the receive buffer returning a new buffer.
- Value parameters:
- arrivedMsg
message to be put into the buffer.
- Returns:
The updated buffer containing the message.
- Source:
- AckedDelivery.scala