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

se.fortnox.reactivewizard.db.transactions.DaoTransactions Maven / Gradle / Ivy

There is a newer version: 24.6.0
Show newest version
package se.fortnox.reactivewizard.db.transactions;

import org.reactivestreams.Publisher;
import reactor.core.publisher.Mono;

public interface DaoTransactions {
    /**
     * Creates and executes a transaction for the passed dao-calls.
     * The calls will be run in the order they are passed to this method.
     *
     * @param daoCalls dao calls to run as on single transaction
     * @return empty Flux
     */
    Mono executeTransaction(Iterable> daoCalls);

    /**
     * Creates and executes a transaction for the passed dao-calls.
     * The calls will be run in the order they are passed to this method.
     *
     * @param daoCalls dao calls to run as on single transaction
     * @return empty Flux
     */
    Mono executeTransaction(Publisher... daoCalls);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy