Interface TxnId

  • 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 Detail

      • hashCode

        int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • name

        java.lang.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).