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 TransactionProxy
public void rollback()
rollback
in interface TransactionProxy
public void close()
close
in interface AutoCloseable
close
in interface TransactionProxy
public boolean setRollbackOnly()
setRollbackOnly
in interface TransactionProxy
True
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