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() @IntrinsicCandidate()
  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. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. def productElementNames: Iterator[String]
    Definition Classes
    Product
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toByteArray: Array[Byte]
  22. def toByteString: ByteString
  23. def toHexString: HexString
  24. def toInputStream: InputStream
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ordered[Offset]

Inherited from Comparable[Offset]

Inherited from AnyRef

Inherited from Any

Ungrouped