Package org.openrewrite
Class InMemoryExecutionContext
java.lang.Object
org.openrewrite.InMemoryExecutionContext
- All Implemented Interfaces:
ExecutionContext
-
Field Summary
Fields inherited from interface org.openrewrite.ExecutionContext
CURRENT_CYCLE, CURRENT_RECIPE, DATA_TABLES, REQUIRE_PRINT_EQUALS_INPUT, RUN_TIMEOUT
-
Constructor Summary
ConstructorsConstructorDescriptionInMemoryExecutionContext
(Consumer<Throwable> onError) InMemoryExecutionContext
(Consumer<Throwable> onError, Duration runTimeout) InMemoryExecutionContext
(Consumer<Throwable> onError, Duration runTimeout, BiConsumer<Throwable, ExecutionContext> onTimeout) -
Method Summary
Modifier and TypeMethodDescription<T> T
getMessage
(String key) <T> T
pollMessage
(String key) void
putMessage
(String key, @Nullable Object value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openrewrite.ExecutionContext
addObserver, computeMessage, getCycle, getMessage, getObservers, pollMessage, putCurrentRecipe, putMessageInCollection, putMessageInSet
-
Constructor Details
-
InMemoryExecutionContext
public InMemoryExecutionContext() -
InMemoryExecutionContext
-
InMemoryExecutionContext
-
InMemoryExecutionContext
public InMemoryExecutionContext(Consumer<Throwable> onError, Duration runTimeout, BiConsumer<Throwable, ExecutionContext> onTimeout)
-
-
Method Details
-
putMessage
- Specified by:
putMessage
in interfaceExecutionContext
-
getMessage
- Specified by:
getMessage
in interfaceExecutionContext
-
pollMessage
- Specified by:
pollMessage
in interfaceExecutionContext
-
getOnError
- Specified by:
getOnError
in interfaceExecutionContext
-
getOnTimeout
- Specified by:
getOnTimeout
in interfaceExecutionContext
-