Class TxCompletionStageDataIntroductionHelper
java.lang.Object
io.micronaut.transaction.interceptor.TxCompletionStageDataIntroductionHelper
The transactional state propagation in
CompletionStage
helper.- Since:
- 3.9.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorDescriptionTxCompletionStageDataIntroductionHelper
(CoroutineTxHelper coroutineTxHelper) -
Method Summary
Modifier and TypeMethodDescriptiondecorate
(io.micronaut.aop.InterceptedMethod interceptedMethod, Supplier<CompletionStage<Object>> supplier) Decorate the suppliedCompletionStage
.
-
Constructor Details
-
TxCompletionStageDataIntroductionHelper
-
-
Method Details
-
decorate
public CompletionStage<Object> decorate(io.micronaut.aop.InterceptedMethod interceptedMethod, Supplier<CompletionStage<Object>> supplier) Decorate the suppliedCompletionStage
.- Parameters:
interceptedMethod
- The intercepted methodsupplier
- The supplier- Returns:
- decorated stage
-