All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.narayana.jta.TransactionExceptionResult Maven / Gradle / Ivy

There is a newer version: 3.15.0
Show newest version
package io.quarkus.narayana.jta;

import java.util.function.Function;

/**
 * Enum that can be used to control the decision to rollback or commit based on the type of an exception.
 *
 * @see QuarkusTransaction#joiningExisting()
 * @see QuarkusTransaction#requiringNew()
 * @see QuarkusTransaction#disallowingExisting()
 * @see QuarkusTransaction#suspendingExisting()
 * @see QuarkusTransaction#runner(TransactionSemantics)
 * @see TransactionRunnerOptions#exceptionHandler(Function)
 */
public enum TransactionExceptionResult {

    /**
     * The transaction should be committed.
     */
    COMMIT,
    /**
     * The transaction should be rolled back.
     */
    ROLLBACK

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy