Package fr.maif.eventsourcing
Class ReactiveTransactionManager
java.lang.Object
fr.maif.eventsourcing.ReactiveTransactionManager
- All Implemented Interfaces:
fr.maif.eventsourcing.TransactionManager<fr.maif.jooq.PgAsyncTransaction>
public class ReactiveTransactionManager
extends Object
implements fr.maif.eventsourcing.TransactionManager<fr.maif.jooq.PgAsyncTransaction>
-
Nested Class Summary
Nested classes/interfaces inherited from interface fr.maif.eventsourcing.TransactionManager
fr.maif.eventsourcing.TransactionManager.InTransactionResult<T extends Object> -
Field Summary
Fields inherited from interface fr.maif.eventsourcing.TransactionManager
UUIDgen -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> CompletionStage<T>withTransaction(Function<fr.maif.jooq.PgAsyncTransaction, CompletionStage<T>> callBack) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.maif.eventsourcing.TransactionManager
transactionId
-
Constructor Details
-
ReactiveTransactionManager
public ReactiveTransactionManager(fr.maif.jooq.PgAsyncPool pgAsyncPool)
-
-
Method Details
-
withTransaction
public <T> CompletionStage<T> withTransaction(Function<fr.maif.jooq.PgAsyncTransaction, CompletionStage<T>> callBack) - Specified by:
withTransactionin interfacefr.maif.eventsourcing.TransactionManager<fr.maif.jooq.PgAsyncTransaction>
-