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
TxnIdare.equalsif
It is preferrable that the TxnId is global unique over time and space.
-
Method Summary
-
Method Details
-
hashCode
int hashCode() -
equals
-
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).
-