Packages

final case class Offset(bytes: Bytes) extends Ordered[Offset] with Product with Serializable

Offsets into streams with hierarchical addressing.

We use these Offset's to address changes to the participant state. Offsets are opaque values that must be must be strictly increasing according to lexicographical ordering.

Ledger implementations are advised to future proof their design of offsets by reserving the first (few) bytes for a version indicator, followed by the specific offset scheme for that version. This way it is possible in the future to switch to a different versioning scheme, while making sure that previously created offsets are always less than newer offsets.

Linear Supertypes
Serializable, Product, Equals, Ordered[Offset], Comparable[Offset], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Offset
  2. Serializable
  3. Product
  4. Equals
  5. Ordered
  6. Comparable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Offset(bytes: Bytes)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def <(that: Offset): Boolean
    Definition Classes
    Ordered
  4. def <=(that: Offset): Boolean
    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def >(that: Offset): Boolean
    Definition Classes
    Ordered
  7. def >=(that: Offset): Boolean
    Definition Classes
    Ordered
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. val bytes: Bytes
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def compare(that: Offset): Int
    Definition Classes
    Offset → Ordered
  12. def compareTo(that: Offset): Int
    Definition Classes
    Ordered → Comparable
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def productElementNames: Iterator[String]
    Definition Classes
    Product
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toByteArray: Array[Byte]
  23. def toHexString: HexString
  24. def toInputStream: InputStream
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ordered[Offset]

Inherited from Comparable[Offset]

Inherited from AnyRef

Inherited from Any

Ungrouped