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
    Constructor
    Description
    ReactiveTransactionManager(fr.maif.jooq.PgAsyncPool pgAsyncPool)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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, wait

    Methods 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:
      withTransaction in interface fr.maif.eventsourcing.TransactionManager<fr.maif.jooq.PgAsyncTransaction>