final case class SeqNo(rawValue: Long) extends Ordered[SeqNo] with Product with Serializable

Implements a 64 bit sequence number with proper wrap-around ordering.

Source
AckedDelivery.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SeqNo
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Ordered
  7. Comparable
  8. AnyRef
  9. Any
Implicitly
  1. by orderingToOrdered
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SeqNo(rawValue: Long)

Value Members

  1. def <(that: SeqNo): Boolean
    Definition Classes
    Ordered
  2. def <=(that: SeqNo): Boolean
    Definition Classes
    Ordered
  3. def >(that: SeqNo): Boolean
    Definition Classes
    Ordered
  4. def >=(that: SeqNo): Boolean
    Definition Classes
    Ordered
  5. def compare(that: SeqNo): Int
    Definition Classes
    SeqNo → Ordered
  6. def compareTo(that: SeqNo): Int
    Definition Classes
    Ordered → Comparable
  7. def inc: SeqNo

    Increments the sequence number.

    Increments the sequence number. Wraps-around if 64 bit limit is reached.

    returns

    the incremented sequence number

  8. def isSuccessor(that: SeqNo): Boolean

    Checks if this sequence number is an immediate successor of the provided one.

    Checks if this sequence number is an immediate successor of the provided one.

    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

  9. val rawValue: Long
  10. def toString(): String
    Definition Classes
    SeqNo → AnyRef → Any

Shadowed Implicit Value Members

  1. def <(that: SeqNo): Boolean
    Implicit
    This member is added by an implicit conversion from SeqNo to Ordered[SeqNo] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (seqNo: Ordered[SeqNo]).<(that)
    Definition Classes
    Ordered
  2. def <=(that: SeqNo): Boolean
    Implicit
    This member is added by an implicit conversion from SeqNo to Ordered[SeqNo] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (seqNo: Ordered[SeqNo]).<=(that)
    Definition Classes
    Ordered
  3. def >(that: SeqNo): Boolean
    Implicit
    This member is added by an implicit conversion from SeqNo to Ordered[SeqNo] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (seqNo: Ordered[SeqNo]).>(that)
    Definition Classes
    Ordered
  4. def >=(that: SeqNo): Boolean
    Implicit
    This member is added by an implicit conversion from SeqNo to Ordered[SeqNo] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (seqNo: Ordered[SeqNo]).>=(that)
    Definition Classes
    Ordered
  5. def compare(that: SeqNo): Int
    Implicit
    This member is added by an implicit conversion from SeqNo to Ordered[SeqNo] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (seqNo: Ordered[SeqNo]).compare(that)
    Definition Classes
    Ordered
  6. def compareTo(that: SeqNo): Int
    Implicit
    This member is added by an implicit conversion from SeqNo to Ordered[SeqNo] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (seqNo: Ordered[SeqNo]).compareTo(that)
    Definition Classes
    Ordered → Comparable