akka.remote
Class SeqNo

java.lang.Object
  extended by 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)
           
 
Method Summary
 int compare(SeqNo that)
           
 SeqNo inc()
          Increments the sequence number.
 boolean isSuccessor(SeqNo that)
          Checks if this sequence number is an immediate successor of the provided one.
static scala.math.Ordering<SeqNo> ord()
           
 long rawValue()
           
 java.lang.String toString()
           
 
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
 

Constructor Detail

SeqNo

public SeqNo(long rawValue)
Method Detail

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