Package org.mapfish.print.processor
Interface Processor.ExecutionContext
- All Known Implementing Classes:
AbstractProcessor.Context
public static interface Processor.ExecutionContext
An execution context for a specific print task.
-
Method Summary
Modifier and TypeMethodDescriptiongetStats()
<T> T
mdcContext
(Supplier<T> action) Set the MDC context while running the action.<T> T
mdcContextEx
(Callable<T> action) Set the MDC context while running the action.void
Throws a CancellationException if the job was canceled.
-
Method Details
-
stopIfCanceled
void stopIfCanceled()Throws a CancellationException if the job was canceled. -
getStats
ExecutionStats getStats()- Returns:
- The ExecutionStats object
-
getMDCContext
- Returns:
- The MDC context for the current print job.
-
mdcContext
Set the MDC context while running the action.- Type Parameters:
T
- The returned class- Parameters:
action
- The action to run
-
mdcContextEx
Set the MDC context while running the action.- Type Parameters:
T
- The returned class- Parameters:
action
- The action to run- Throws:
Exception
-