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
Linear Supertypes
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- SeqNo
- Serializable
- Serializable
- Product
- Equals
- Ordered
- Comparable
- AnyRef
- Any
Implicitly
- by orderingToOrdered
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
<(that: SeqNo): Boolean
- Definition Classes
- Ordered
-
def
<=(that: SeqNo): Boolean
- Definition Classes
- Ordered
-
def
>(that: SeqNo): Boolean
- Definition Classes
- Ordered
-
def
>=(that: SeqNo): Boolean
- Definition Classes
- Ordered
-
def
compare(that: SeqNo): Int
- Definition Classes
- SeqNo → Ordered
-
def
compareTo(that: SeqNo): Int
- Definition Classes
- Ordered → Comparable
-
def
inc: SeqNo
Increments the sequence number.
Increments the sequence number. Wraps-around if 64 bit limit is reached.
- returns
the incremented sequence number
-
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
- val rawValue: Long
-
def
toString(): String
- Definition Classes
- SeqNo → AnyRef → Any
Shadowed Implicit Value Members
-
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
-
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
-
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
-
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
-
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
-
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