public abstract class YdbTransactionImpl extends Object implements YdbTransaction
| Modifier and Type | Field and Description |
|---|---|
protected AtomicReference<CompletableFuture<Status>> |
statusFuture |
protected AtomicReference<String> |
txId |
protected TxMode |
txMode |
| Modifier | Constructor and Description |
|---|---|
protected |
YdbTransactionImpl(TxMode txMode,
String txId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Returns identifier of the transaction or null if the transaction is not active = (not
started/committed/rolled back).
|
CompletableFuture<Status> |
getStatusFuture() |
TxMode |
getTxMode()
Returns
TxMode with mode of the transaction |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSessionId, isActiveprotected final TxMode txMode
protected final AtomicReference<String> txId
protected final AtomicReference<CompletableFuture<Status>> statusFuture
public String getId()
YdbTransactionYdbTransaction is not active - any query on this object
starts a new transaction on server. When transaction is active any call of commit,
rollback or execution of any query with commitAtEnd=true finishes this transactiongetId in interface YdbTransactionpublic TxMode getTxMode()
YdbTransactionTxMode with mode of the transactiongetTxMode in interface YdbTransactionpublic CompletableFuture<Status> getStatusFuture()
getStatusFuture in interface YdbTransactionCopyright © 2024. All rights reserved.