vldpyatkov commented on code in PR #13080:
URL: https://github.com/apache/ignite/pull/13080#discussion_r3162067873


##########
modules/core/src/main/java/org/apache/ignite/transactions/Transaction.java:
##########
@@ -290,6 +290,57 @@ public interface Transaction extends AutoCloseable, 
IgniteAsyncSupport {
      */
     public void suspend() throws IgniteException;
 
+    /**
+     * Creates a savepoint in the current transaction.
+     * <p>
+     * Savepoints are supported only for explicit transactions with
+     * {@link TransactionConcurrency#PESSIMISTIC} concurrency. The savepoint 
keeps the current transaction state and can
+     * later be used by {@link #rollbackToSavepoint(String)} to discard 
changes made after it was created.
+     *
+     * @param name Savepoint name.
+     * @throws TransactionException If savepoint with the same name already 
exists.
+     * @throws IgniteException If savepoints are not supported for this 
transaction.
+     */
+    public void savepoint(String name);

Review Comment:
   Marked as experimental.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to