Package akka.remote
Class AckedReceiveBuffer<T extends HasSequenceNumber>
- java.lang.Object
-
- akka.remote.AckedReceiveBuffer<T>
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public final class AckedReceiveBuffer<T extends HasSequenceNumber> extends java.lang.Object implements scala.Product, java.io.Serializable
Deprecated.Classic remoting is deprecated, use Artery. Since 2.6.0.Implements an immutable receive buffer that buffers incoming messages until they can be safely delivered. This buffer works together with aAckedSendBuffer
on the sender() side.param: lastDelivered Sequence number of the last message that has been delivered. param: cumulativeAck The highest sequence number received so far. param: buf Buffer of messages that are waiting for delivery
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AckedReceiveBuffer(SeqNo lastDelivered, SeqNo cumulativeAck, scala.collection.immutable.SortedSet<T> buf, scala.math.Ordering<T> seqOrdering)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T extends HasSequenceNumber>
SeqNo$lessinit$greater$default$1()
Deprecated.static <T extends HasSequenceNumber>
SeqNo$lessinit$greater$default$2()
Deprecated.static <T extends HasSequenceNumber>
scala.collection.immutable.TreeSet<T>$lessinit$greater$default$3()
Deprecated.static <T extends HasSequenceNumber>
AckedReceiveBuffer<T>apply(SeqNo lastDelivered, SeqNo cumulativeAck, scala.collection.immutable.SortedSet<T> buf, scala.math.Ordering<T> seqOrdering)
Deprecated.static <T extends HasSequenceNumber>
SeqNoapply$default$1()
Deprecated.static <T extends HasSequenceNumber>
SeqNoapply$default$2()
Deprecated.static <T extends HasSequenceNumber>
scala.collection.immutable.TreeSet<T>apply$default$3()
Deprecated.scala.collection.immutable.SortedSet<T>
buf()
Deprecated.boolean
canEqual(java.lang.Object x$1)
Deprecated.<T extends HasSequenceNumber>
AckedReceiveBuffer<T>copy(SeqNo lastDelivered, SeqNo cumulativeAck, scala.collection.immutable.SortedSet<T> buf, scala.math.Ordering<T> seqOrdering)
Deprecated.<T extends HasSequenceNumber>
SeqNocopy$default$1()
Deprecated.<T extends HasSequenceNumber>
SeqNocopy$default$2()
Deprecated.<T extends HasSequenceNumber>
scala.collection.immutable.SortedSet<T>copy$default$3()
Deprecated.SeqNo
cumulativeAck()
Deprecated.boolean
equals(java.lang.Object x$1)
Deprecated.scala.Tuple3<AckedReceiveBuffer<T>,scala.collection.immutable.Seq<T>,Ack>
extractDeliverable()
Deprecated.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.int
hashCode()
Deprecated.SeqNo
lastDelivered()
Deprecated.AckedReceiveBuffer<T>
mergeFrom(AckedReceiveBuffer<T> that)
Deprecated.Merges two receive buffers.int
productArity()
Deprecated.java.lang.Object
productElement(int x$1)
Deprecated.java.lang.String
productElementName(int x$1)
Deprecated.scala.collection.Iterator<java.lang.Object>
productIterator()
Deprecated.java.lang.String
productPrefix()
Deprecated.AckedReceiveBuffer<T>
receive(T arrivedMsg)
Deprecated.Puts a sequenced message in the receive buffer returning a new buffer.scala.math.Ordering<T>
seqOrdering()
Deprecated.java.lang.String
toString()
Deprecated.static <T extends HasSequenceNumber>
scala.Option<scala.Tuple3<SeqNo,SeqNo,scala.collection.immutable.SortedSet<T>>>unapply(AckedReceiveBuffer<T> x$0)
Deprecated.
-
-
-
Method Detail
-
$lessinit$greater$default$1
public static <T extends HasSequenceNumber> SeqNo $lessinit$greater$default$1()
Deprecated.
-
$lessinit$greater$default$2
public static <T extends HasSequenceNumber> SeqNo $lessinit$greater$default$2()
Deprecated.
-
$lessinit$greater$default$3
public static <T extends HasSequenceNumber> scala.collection.immutable.TreeSet<T> $lessinit$greater$default$3()
Deprecated.
-
apply
public static <T extends HasSequenceNumber> AckedReceiveBuffer<T> apply(SeqNo lastDelivered, SeqNo cumulativeAck, scala.collection.immutable.SortedSet<T> buf, scala.math.Ordering<T> seqOrdering)
Deprecated.
-
apply$default$1
public static <T extends HasSequenceNumber> SeqNo apply$default$1()
Deprecated.
-
apply$default$2
public static <T extends HasSequenceNumber> SeqNo apply$default$2()
Deprecated.
-
apply$default$3
public static <T extends HasSequenceNumber> scala.collection.immutable.TreeSet<T> apply$default$3()
Deprecated.
-
unapply
public static <T extends HasSequenceNumber> scala.Option<scala.Tuple3<SeqNo,SeqNo,scala.collection.immutable.SortedSet<T>>> unapply(AckedReceiveBuffer<T> x$0)
Deprecated.
-
lastDelivered
public SeqNo lastDelivered()
Deprecated.
-
cumulativeAck
public SeqNo cumulativeAck()
Deprecated.
-
buf
public scala.collection.immutable.SortedSet<T> buf()
Deprecated.
-
seqOrdering
public scala.math.Ordering<T> seqOrdering()
Deprecated.
-
receive
public AckedReceiveBuffer<T> receive(T arrivedMsg)
Deprecated.Puts a sequenced message in the receive buffer returning a new buffer.- Parameters:
arrivedMsg
- message to be put into the buffer.- Returns:
- The updated buffer containing the message.
-
extractDeliverable
public scala.Tuple3<AckedReceiveBuffer<T>,scala.collection.immutable.Seq<T>,Ack> extractDeliverable()
Deprecated.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.
-
mergeFrom
public AckedReceiveBuffer<T> mergeFrom(AckedReceiveBuffer<T> that)
Deprecated.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.- Parameters:
that
- The receive buffer to merge with- Returns:
- The merged receive buffer.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
copy
public <T extends HasSequenceNumber> AckedReceiveBuffer<T> copy(SeqNo lastDelivered, SeqNo cumulativeAck, scala.collection.immutable.SortedSet<T> buf, scala.math.Ordering<T> seqOrdering)
Deprecated.
-
copy$default$1
public <T extends HasSequenceNumber> SeqNo copy$default$1()
Deprecated.
-
copy$default$2
public <T extends HasSequenceNumber> SeqNo copy$default$2()
Deprecated.
-
copy$default$3
public <T extends HasSequenceNumber> scala.collection.immutable.SortedSet<T> copy$default$3()
Deprecated.
-
productPrefix
public java.lang.String productPrefix()
Deprecated.- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
Deprecated.- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
Deprecated.- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
Deprecated.- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
Deprecated.- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
Deprecated.- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
Deprecated.- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-