Package io.micronaut.core.execution
Interface ImperativeExecutionFlow<T>
- Type Parameters:
T
- The value type
- All Superinterfaces:
ExecutionFlow<T>
The imperative execution flow.
- Since:
- 4.0.0
- Author:
- Denis Stepnov
-
Method Summary
Modifier and TypeMethodDescriptiongetError()
getValue()
default @NonNull ImperativeExecutionFlow<T>
Create anImperativeExecutionFlow
from this execution flow, if possible.Methods inherited from interface io.micronaut.core.execution.ExecutionFlow
flatMap, map, onComplete, onErrorResume, putInContext, then, toCompletableFuture, tryCompleteError, tryCompleteValue
-
Method Details
-
getValue
- Returns:
- The value if present
-
getError
- Returns:
- The exception if present
-
getContext
- Returns:
- The context if present
-
tryComplete
Description copied from interface:ExecutionFlow
Create anImperativeExecutionFlow
from this execution flow, if possible. The flow will have its result immediately available.- Specified by:
tryComplete
in interfaceExecutionFlow<T>
- Returns:
- The imperative flow, or
null
if this flow is not complete or does not support this operation
-