Package io.micronaut.aop.kotlin
Interface KotlinInterceptedMethod
-
- All Superinterfaces:
InterceptedMethod
public interface KotlinInterceptedMethod extends InterceptedMethod
Kotlin'sInterceptedMethod
with extra methods to access coroutine's context.- Since:
- 3.2
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micronaut.aop.InterceptedMethod
InterceptedMethod.ResultType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description kotlin.coroutines.CoroutineContext
getCoroutineContext()
void
updateCoroutineContext(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 Detail
-
getCoroutineContext
@NonNull kotlin.coroutines.CoroutineContext getCoroutineContext()
- Returns:
- Coroutine's context
-
updateCoroutineContext
void updateCoroutineContext(@NonNull kotlin.coroutines.CoroutineContext coroutineContext)
Update coroutine's context.- Parameters:
coroutineContext
- The context
-
-