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> TgetMessage(String key) <T> TpollMessage(String key) voidputMessage(String key, @Nullable Object value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openrewrite.ExecutionContext
addObserver, computeMessage, getCycle, getCycleDetails, 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:
putMessagein interfaceExecutionContext
-
getMessage
- Specified by:
getMessagein interfaceExecutionContext
-
pollMessage
- Specified by:
pollMessagein interfaceExecutionContext
-
getOnError
- Specified by:
getOnErrorin interfaceExecutionContext
-
getOnTimeout
- Specified by:
getOnTimeoutin interfaceExecutionContext
-