akka.remote
Class SeqNo
java.lang.Object
akka.remote.SeqNo
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<SeqNo>, scala.Equals, scala.math.Ordered<SeqNo>, scala.Product
public class SeqNo
- extends java.lang.Object
- implements scala.math.Ordered<SeqNo>, scala.Product, scala.Serializable
- See Also:
- Serialized Form
Constructor Summary |
SeqNo(long rawValue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface scala.math.Ordered |
$greater, $greater$eq, $less, $less$eq, compareTo |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
SeqNo
public SeqNo(long rawValue)
ord
public static scala.math.Ordering<SeqNo> ord()
rawValue
public long rawValue()
isSuccessor
public boolean isSuccessor(SeqNo that)
- Checks if this sequence number is an immediate successor of the provided one.
- Parameters:
that
- The second sequence number that has to be exactly one less
- Returns:
- true if this sequence number is the successor of the provided one
inc
public SeqNo inc()
- Increments the sequence number. Wraps-around if 64 bit limit is reached.
- Returns:
- the incremented sequence number
compare
public int compare(SeqNo that)
- Specified by:
compare
in interface scala.math.Ordered<SeqNo>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object