public class ClientTransactionProxy extends Object implements TransactionProxy
TransactionProxy implementation that uses ClientTransaction to perform transaction
operations.| Constructor and Description |
|---|
ClientTransactionProxy(ClientTransaction tx) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Ends the transaction.
|
void |
commit()
Commits this transaction.
|
void |
rollback()
Rolls back this transaction.
|
boolean |
setRollbackOnly()
Modify the transaction associated with the current thread such that the
only possible outcome of the transaction is to roll back the
transaction.
|
String |
toString() |
public ClientTransactionProxy(ClientTransaction tx)
public void commit()
commit in interface TransactionProxypublic void rollback()
rollback in interface TransactionProxypublic void close()
close in interface AutoCloseableclose in interface TransactionProxypublic boolean setRollbackOnly()
setRollbackOnly in interface TransactionProxyTrue if rollback-only flag was set as a result of this operation,
false if it was already set prior to this call or could not be set
because transaction is already finishing up committing or rolling back.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021