Package akka.remote
Class AckedSendBuffer<T extends HasSequenceNumber>
- java.lang.Object
-
- akka.remote.AckedSendBuffer<T>
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public final class AckedSendBuffer<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 resend buffer that buffers messages until they have been acknowledged. Properly removes messages when an ack is received. This buffer works together withAckedReceiveBuffer
on the receiving end.param: capacity Maximum number of messages the buffer is willing to accept. If reached
ResendBufferCapacityReachedException
is thrown. param: nonAcked Sequence of messages that has not yet been acknowledged. param: nacked Sequence of messages that has been explicitly negative acknowledged. param: maxSeq The maximum sequence number that has been stored in this buffer. Messages having lower sequence number will be not stored but rejected withIllegalArgumentException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AckedSendBuffer(int capacity, scala.collection.immutable.IndexedSeq<T> nonAcked, scala.collection.immutable.IndexedSeq<T> nacked, SeqNo maxSeq)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T extends HasSequenceNumber>
scala.collection.immutable.Vector<T>$lessinit$greater$default$2()
Deprecated.static <T extends HasSequenceNumber>
scala.collection.immutable.Vector<T>$lessinit$greater$default$3()
Deprecated.static <T extends HasSequenceNumber>
SeqNo$lessinit$greater$default$4()
Deprecated.AckedSendBuffer<T>
acknowledge(Ack ack)
Deprecated.Processes an incoming acknowledgement and returns a new buffer with only unacknowledged elements remaining.static <T extends HasSequenceNumber>
AckedSendBuffer<T>apply(int capacity, scala.collection.immutable.IndexedSeq<T> nonAcked, scala.collection.immutable.IndexedSeq<T> nacked, SeqNo maxSeq)
Deprecated.static <T extends HasSequenceNumber>
scala.collection.immutable.Vector<T>apply$default$2()
Deprecated.static <T extends HasSequenceNumber>
scala.collection.immutable.Vector<T>apply$default$3()
Deprecated.static <T extends HasSequenceNumber>
SeqNoapply$default$4()
Deprecated.AckedSendBuffer<T>
buffer(T msg)
Deprecated.Puts a new message in the buffer.boolean
canEqual(java.lang.Object x$1)
Deprecated.int
capacity()
Deprecated.<T extends HasSequenceNumber>
AckedSendBuffer<T>copy(int capacity, scala.collection.immutable.IndexedSeq<T> nonAcked, scala.collection.immutable.IndexedSeq<T> nacked, SeqNo maxSeq)
Deprecated.<T extends HasSequenceNumber>
intcopy$default$1()
Deprecated.<T extends HasSequenceNumber>
scala.collection.immutable.IndexedSeq<T>copy$default$2()
Deprecated.<T extends HasSequenceNumber>
scala.collection.immutable.IndexedSeq<T>copy$default$3()
Deprecated.<T extends HasSequenceNumber>
SeqNocopy$default$4()
Deprecated.boolean
equals(java.lang.Object x$1)
Deprecated.int
hashCode()
Deprecated.SeqNo
maxSeq()
Deprecated.scala.collection.immutable.IndexedSeq<T>
nacked()
Deprecated.scala.collection.immutable.IndexedSeq<T>
nonAcked()
Deprecated.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.java.lang.String
toString()
Deprecated.static <T extends HasSequenceNumber>
scala.Option<scala.Tuple4<java.lang.Object,scala.collection.immutable.IndexedSeq<T>,scala.collection.immutable.IndexedSeq<T>,SeqNo>>unapply(AckedSendBuffer<T> x$0)
Deprecated.
-
-
-
Method Detail
-
$lessinit$greater$default$2
public static <T extends HasSequenceNumber> scala.collection.immutable.Vector<T> $lessinit$greater$default$2()
Deprecated.
-
$lessinit$greater$default$3
public static <T extends HasSequenceNumber> scala.collection.immutable.Vector<T> $lessinit$greater$default$3()
Deprecated.
-
$lessinit$greater$default$4
public static <T extends HasSequenceNumber> SeqNo $lessinit$greater$default$4()
Deprecated.
-
apply
public static <T extends HasSequenceNumber> AckedSendBuffer<T> apply(int capacity, scala.collection.immutable.IndexedSeq<T> nonAcked, scala.collection.immutable.IndexedSeq<T> nacked, SeqNo maxSeq)
Deprecated.
-
apply$default$2
public static <T extends HasSequenceNumber> scala.collection.immutable.Vector<T> apply$default$2()
Deprecated.
-
apply$default$3
public static <T extends HasSequenceNumber> scala.collection.immutable.Vector<T> apply$default$3()
Deprecated.
-
apply$default$4
public static <T extends HasSequenceNumber> SeqNo apply$default$4()
Deprecated.
-
unapply
public static <T extends HasSequenceNumber> scala.Option<scala.Tuple4<java.lang.Object,scala.collection.immutable.IndexedSeq<T>,scala.collection.immutable.IndexedSeq<T>,SeqNo>> unapply(AckedSendBuffer<T> x$0)
Deprecated.
-
capacity
public int capacity()
Deprecated.
-
nonAcked
public scala.collection.immutable.IndexedSeq<T> nonAcked()
Deprecated.
-
nacked
public scala.collection.immutable.IndexedSeq<T> nacked()
Deprecated.
-
maxSeq
public SeqNo maxSeq()
Deprecated.
-
acknowledge
public AckedSendBuffer<T> acknowledge(Ack ack)
Deprecated.Processes an incoming acknowledgement and returns a new buffer with only unacknowledged elements remaining.- Parameters:
ack
- The received acknowledgement- Returns:
- An updated buffer containing the remaining unacknowledged messages
-
buffer
public AckedSendBuffer<T> buffer(T msg)
Deprecated.Puts a new message in the buffer. ThrowsIllegalArgumentException
if an out-of-sequence message is attempted to be stored.- Parameters:
msg
- The message to be stored for possible future retransmission.- Returns:
- The updated buffer
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
copy
public <T extends HasSequenceNumber> AckedSendBuffer<T> copy(int capacity, scala.collection.immutable.IndexedSeq<T> nonAcked, scala.collection.immutable.IndexedSeq<T> nacked, SeqNo maxSeq)
Deprecated.
-
copy$default$1
public <T extends HasSequenceNumber> int copy$default$1()
Deprecated.
-
copy$default$2
public <T extends HasSequenceNumber> scala.collection.immutable.IndexedSeq<T> copy$default$2()
Deprecated.
-
copy$default$3
public <T extends HasSequenceNumber> scala.collection.immutable.IndexedSeq<T> copy$default$3()
Deprecated.
-
copy$default$4
public <T extends HasSequenceNumber> SeqNo copy$default$4()
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
-
-