public interface ClientTransaction extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
Ends the transaction.
|
void |
commit()
Commits this transaction.
|
void |
rollback()
Rolls back this transaction.
|
void commit() throws org.apache.ignite.internal.client.thin.ClientServerError, ClientException
ClientException
- If the transaction is already closed or transaction was started by another thread.org.apache.ignite.internal.client.thin.ClientServerError
- If commit failed.void rollback() throws org.apache.ignite.internal.client.thin.ClientServerError, ClientException
org.apache.ignite.internal.client.thin.ClientServerError
- If rollback failed.ClientException
void close()
close
in interface AutoCloseable
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023