Class TxCompletionStageDataIntroductionHelper
- java.lang.Object
-
- io.micronaut.transaction.interceptor.TxCompletionStageDataIntroductionHelper
-
@Internal @Singleton public final class TxCompletionStageDataIntroductionHelper extends java.lang.Object
The transactional state propagation inCompletionStage
helper.- Since:
- 3.9.0
- Author:
- Denis Stepanov
-
-
Constructor Summary
Constructors Constructor Description TxCompletionStageDataIntroductionHelper(CoroutineTxHelper coroutineTxHelper)
-
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 suppliedCompletionStage
.
-
-
-
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 suppliedCompletionStage
.- Parameters:
interceptedMethod
- The intercepted methodsupplier
- The supplier- Returns:
- decorated stage
-
-