AckedReceiveBuffer

@deprecated("Classic remoting is deprecated, use Artery", "2.6.0")
final case class AckedReceiveBuffer[T <: HasSequenceNumber](lastDelivered: SeqNo, cumulativeAck: SeqNo, buf: SortedSet[T])(implicit seqOrdering: Ordering[T])

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
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

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
def receive(arrivedMsg: T): AckedReceiveBuffer[T]

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
override def toString: String
Definition Classes
Any
Source:
AckedDelivery.scala

Inherited methods

Inherited from:
Product

Implicits

Implicits