se.fortnox.reactivewizard.db.transactions.DaoTransactions Maven / Gradle / Ivy
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 extends Publisher>> 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