Package org.apache.ignite.client
Interface ClientTransaction
- 
- All Superinterfaces:
- AutoCloseable
 
 public interface ClientTransaction extends AutoCloseable Thin client transaction.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Ends the transaction.voidcommit()Commits this transaction.voidrollback()Rolls back this transaction.
 
- 
- 
- 
Method Detail- 
commitvoid commit() throws org.apache.ignite.internal.client.thin.ClientServerError, ClientExceptionCommits 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.
 
 - 
rollbackvoid rollback() throws org.apache.ignite.internal.client.thin.ClientServerError, ClientExceptionRolls back this transaction.- Throws:
- org.apache.ignite.internal.client.thin.ClientServerError- If rollback failed.
- ClientException
 
 - 
closevoid close() Ends the transaction. Transaction will be rolled back if it has not been committed.- Specified by:
- closein interface- AutoCloseable
 
 
- 
 
-