Package org.apache.ignite.client
Interface ClientTransaction
-
- All Superinterfaces:
AutoCloseable
public interface ClientTransaction extends AutoCloseable
Thin client transaction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Ends the transaction.void
commit()
Commits this transaction.void
rollback()
Rolls back this transaction.
-
-
-
Method Detail
-
commit
void commit() throws org.apache.ignite.internal.client.thin.ClientServerError, ClientException
Commits this transaction.- Throws:
ClientException
- If the transaction is already closed or transaction was started by another thread.org.apache.ignite.internal.client.thin.ClientServerError
- If commit failed.
-
rollback
void rollback() throws org.apache.ignite.internal.client.thin.ClientServerError, ClientException
Rolls back this transaction.- Throws:
org.apache.ignite.internal.client.thin.ClientServerError
- If rollback failed.ClientException
-
close
void close()
Ends the transaction. Transaction will be rolled back if it has not been committed.- Specified by:
close
in interfaceAutoCloseable
-
-