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, RUN_TIMEOUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
getMessage
(String key) boolean
<T> T
pollMessage
(String key) void
putCycle
(int cycle) void
putMessage
(String key, @Nullable Object value) void
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
-
WatchableExecutionContext
public WatchableExecutionContext()
-
-
Method Details
-
hasNewMessages
public boolean hasNewMessages() -
resetHasNewMessages
public void resetHasNewMessages() -
putMessage
- Specified by:
putMessage
in interfaceExecutionContext
-
putCycle
public void putCycle(int cycle) -
getMessage
- Specified by:
getMessage
in interfaceExecutionContext
-
pollMessage
- Specified by:
pollMessage
in interfaceExecutionContext
-
getOnError
- Specified by:
getOnError
in interfaceExecutionContext
-
getOnTimeout
- Specified by:
getOnTimeout
in interfaceExecutionContext
-