Package oracle.kv.txn
Class TransactionIdImpl
java.lang.Object
oracle.kv.txn.TransactionIdImpl
- All Implemented Interfaces:
TransactionId
Object that represents a transaction id. The transaction id is a unique
id associated with a particular transaction.
-
Constructor Details
-
TransactionIdImpl
public TransactionIdImpl(int shardId, long txnId, long timestamp)
-
-
Method Details
-
getShardId
public int getShardId()Returns id of shard where the transaction is performed- Specified by:
getShardId
in interfaceTransactionId
- Returns:
- shard id
-
getShardTxnId
public long getShardTxnId()Returns the internal transaction id generated by JE environment. The id is shard-wide unique and- Specified by:
getShardTxnId
in interfaceTransactionId
- Returns:
- the internal transaction id
-
getTimestamp
public long getTimestamp()- Specified by:
getTimestamp
in interfaceTransactionId
- Returns:
- the timestamp of the transaction, which is from the entry of commit (abort) for committed (aborted) transaction.
-
getUuid
-
toString
-