Package fr.maif.eventsourcing
Class DefaultReactorTransactionManager
java.lang.Object
fr.maif.eventsourcing.DefaultReactorTransactionManager
- All Implemented Interfaces:
ReactorTransactionManager<fr.maif.jooq.reactor.PgAsyncTransaction>
public class DefaultReactorTransactionManager
extends Object
implements ReactorTransactionManager<fr.maif.jooq.reactor.PgAsyncTransaction>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultReactorTransactionManager(fr.maif.jooq.reactor.PgAsyncPool pgAsyncPool) -
Method Summary
Modifier and TypeMethodDescriptionfr.maif.eventsourcing.TransactionManager<fr.maif.jooq.reactor.PgAsyncTransaction><T> reactor.core.publisher.Mono<T>withTransaction(Function<fr.maif.jooq.reactor.PgAsyncTransaction, reactor.core.publisher.Mono<T>> callBack)
-
Constructor Details
-
DefaultReactorTransactionManager
public DefaultReactorTransactionManager(fr.maif.jooq.reactor.PgAsyncPool pgAsyncPool)
-
-
Method Details
-
withTransaction
public <T> reactor.core.publisher.Mono<T> withTransaction(Function<fr.maif.jooq.reactor.PgAsyncTransaction, reactor.core.publisher.Mono<T>> callBack) - Specified by:
withTransactionin interfaceReactorTransactionManager<fr.maif.jooq.reactor.PgAsyncTransaction>
-
toTransactionManager
public fr.maif.eventsourcing.TransactionManager<fr.maif.jooq.reactor.PgAsyncTransaction> toTransactionManager()- Specified by:
toTransactionManagerin interfaceReactorTransactionManager<fr.maif.jooq.reactor.PgAsyncTransaction>
-