Interface ClientTransaction

    • 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 interface AutoCloseable