public static interface Processor.ExecutionContext
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getJobId() |
ExecutionStats |
getStats() |
<T> T |
mdcContext(java.util.function.Supplier<T> action)
Set the MDC context while running the action.
|
<T> T |
mdcContextEx(java.util.concurrent.Callable<T> action)
Set the MDC context while running the action.
|
void |
stopIfCanceled()
Throws a CancellationException if the job was cancelled.
|
void stopIfCanceled()
ExecutionStats getStats()
java.lang.String getJobId()
<T> T mdcContext(java.util.function.Supplier<T> action)
T - The returned classaction - The action to run<T> T mdcContextEx(java.util.concurrent.Callable<T> action)
throws java.lang.Exception
T - The returned classaction - The action to runjava.lang.Exception