Package org.openrewrite.scheduling
Class WatchableExecutionContext
java.lang.Object
org.openrewrite.scheduling.WatchableExecutionContext
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetMessage(String key) boolean<T> TpollMessage(String key) voidputCycle(RecipeRunCycle<?> cycle) voidputMessage(String key, @Nullable Object value) voidMethods 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
-
WatchableExecutionContext
public WatchableExecutionContext()
-
-
Method Details
-
hasNewMessages
public boolean hasNewMessages() -
resetHasNewMessages
public void resetHasNewMessages() -
putMessage
- Specified by:
putMessagein interfaceExecutionContext
-
putCycle
-
getMessage
- Specified by:
getMessagein interfaceExecutionContext
-
pollMessage
- Specified by:
pollMessagein interfaceExecutionContext
-
getOnError
- Specified by:
getOnErrorin interfaceExecutionContext
-
getOnTimeout
- Specified by:
getOnTimeoutin interfaceExecutionContext
-