Class TxnIdUuid

  • All Implemented Interfaces:
    TxnId

    public class TxnIdUuid
    extends java.lang.Object
    implements TxnId
    TxnId based on a UUID.
    • Method Detail

      • create

        public static TxnIdUuid create​(byte[] bytes)
      • name

        public java.lang.String name()
        Specified by:
        name in interface TxnId
      • bytes

        public byte[] bytes()
        Specified by:
        bytes in interface TxnId
      • runtime

        public long runtime()
        Description copied from interface: TxnId
        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).
        Specified by:
        runtime in interface TxnId
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface TxnId
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface TxnId
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object