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 and 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 interface `AutoCloseable`

${current.year} Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.15.0
Release Date | : April 25 2023