All Known Implementing Classes:
TxnIdSimple, TxnIdUuid

public interface TxnId
TxnId is a identifier for a transaction. A component in a transaction can use it as a unique key. The TxnId
  • must be unique across a JVM run
  • unique across JVm runs if used as a persistent name
  • Must provide value equality semantics (two TxnId are .equals if

It is preferrable that the TxnId is global unique over time and space.

  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
     
    boolean
    equals(Object other)
     
    int
     
     
    long
    A long that is a subset, or all or, the bytes.
  • Method Details

    • hashCode

      int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      boolean equals(Object other)
      Overrides:
      equals in class Object
    • name

      String name()
    • bytes

      byte[] bytes()
    • runtime

      long runtime()
      A long that is a subset, or all or, the bytes. This should be unique for the lifetime of the transaction and ideally unique per system instance. It is not a persistent record of a transaction, it is for a transaction identifier in running code. ("system" maybe larger than on e JVM).