Package io.micronaut.aop.kotlin
Interface KotlinInterceptedMethod
- All Superinterfaces:
InterceptedMethod
Kotlin's
InterceptedMethod
with extra methods to access coroutine's context.- Since:
- 3.2
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.aop.InterceptedMethod
InterceptedMethod.ResultType
-
Method Summary
Modifier and TypeMethodDescription@NonNull kotlin.coroutines.CoroutineContext
void
updateCoroutineContext
(@NonNull kotlin.coroutines.CoroutineContext coroutineContext) Update coroutine's context.Methods inherited from interface io.micronaut.aop.InterceptedMethod
handleException, handleResult, interceptResult, interceptResult, interceptResultAsCompletionStage, interceptResultAsCompletionStage, interceptResultAsPublisher, interceptResultAsPublisher, interceptResultAsPublisher, resultType, returnTypeValue, unsupported
-
Method Details
-
getCoroutineContext
- Returns:
- Coroutine's context
-
updateCoroutineContext
Update coroutine's context.- Parameters:
coroutineContext
- The context
-