Interface TxnId
-
- All Known Implementing Classes:
TxnIdSimple,TxnIdUuid
public interface TxnIdTxnIdis a identifier for a transaction. A component in a transaction can use it as a unique key. TheTxnId- must be unique across a JVM run
- unique across JVm runs if used as a persistent name
- Must provide value equality semantics (two
TxnIdare.equalsif
It is preferrable that the TxnId is global unique over time and space.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]bytes()booleanequals(java.lang.Object other)inthashCode()java.lang.Stringname()longruntime()A long that is a subset, or all or, the bytes.
-
-
-
Method Detail
-
hashCode
int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.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).
-
-