Package org.openrewrite
Class DelegatingExecutionContext
- java.lang.Object
-
- org.openrewrite.DelegatingExecutionContext
-
- All Implemented Interfaces:
ExecutionContext
- Direct Known Subclasses:
ParsingExecutionContextView
public class DelegatingExecutionContext extends java.lang.Object implements ExecutionContext
-
-
Constructor Summary
Constructors Constructor Description DelegatingExecutionContext(ExecutionContext delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetMessage(java.lang.String key)java.util.function.Consumer<java.lang.Throwable>getOnError()java.util.function.BiConsumer<java.lang.Throwable,ExecutionContext>getOnTimeout()<T> TpollMessage(java.lang.String key)voidputMessage(java.lang.String key, java.lang.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
computeMessage, getMessage, getRunTimeout, pollMessage, putMessageInCollection, putMessageInSet
-
-
-
-
Constructor Detail
-
DelegatingExecutionContext
public DelegatingExecutionContext(ExecutionContext delegate)
-
-
Method Detail
-
putMessage
public void putMessage(java.lang.String key, java.lang.Object value)- Specified by:
putMessagein interfaceExecutionContext
-
getMessage
@Nullable public <T> T getMessage(java.lang.String key)
- Specified by:
getMessagein interfaceExecutionContext
-
pollMessage
@Nullable public <T> T pollMessage(java.lang.String key)
- Specified by:
pollMessagein interfaceExecutionContext
-
getOnError
public java.util.function.Consumer<java.lang.Throwable> getOnError()
- Specified by:
getOnErrorin interfaceExecutionContext
-
getOnTimeout
public java.util.function.BiConsumer<java.lang.Throwable,ExecutionContext> getOnTimeout()
- Specified by:
getOnTimeoutin interfaceExecutionContext
-
-