Class TxCompletionStageDataIntroductionHelper


  • @Internal
    @Singleton
    public final class TxCompletionStageDataIntroductionHelper
    extends java.lang.Object
    The transactional state propagation in CompletionStage helper.
    Since:
    3.9.0
    Author:
    Denis Stepanov
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletionStage<java.lang.Object> decorate​(io.micronaut.aop.InterceptedMethod interceptedMethod, java.util.function.Supplier<java.util.concurrent.CompletionStage<java.lang.Object>> supplier)
      Decorate the supplied CompletionStage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TxCompletionStageDataIntroductionHelper

        public TxCompletionStageDataIntroductionHelper​(@Nullable
                                                       CoroutineTxHelper coroutineTxHelper)
    • Method Detail

      • decorate

        public java.util.concurrent.CompletionStage<java.lang.Object> decorate​(io.micronaut.aop.InterceptedMethod interceptedMethod,
                                                                               java.util.function.Supplier<java.util.concurrent.CompletionStage<java.lang.Object>> supplier)
        Decorate the supplied CompletionStage.
        Parameters:
        interceptedMethod - The intercepted method
        supplier - The supplier
        Returns:
        decorated stage