Package org.mapfish.print.processor
Class ProcessorDependencyGraph.ProcessorGraphForkJoinTask
- java.lang.Object
-
- java.util.concurrent.ForkJoinTask<V>
-
- java.util.concurrent.RecursiveTask<Values>
-
- org.mapfish.print.processor.ProcessorDependencyGraph.ProcessorGraphForkJoinTask
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.concurrent.Future<Values>
- Enclosing class:
- ProcessorDependencyGraph
public final class ProcessorDependencyGraph.ProcessorGraphForkJoinTask extends java.util.concurrent.RecursiveTask<Values>
A ForkJoinTask that will create ForkJoinTasks from each root and run each of them.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel(boolean mayInterruptIfRunning)
Cancels the complete processor graph of a print task.protected Values
compute()
Processor.ExecutionContext
getExecutionContext()
-
Methods inherited from class java.util.concurrent.ForkJoinTask
adapt, adapt, adapt, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollSubmission, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
-
-
-
-
Method Detail
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
Cancels the complete processor graph of a print task.This is achieved by setting the cancel flag of the execution context, so that every processor can stop its execution.
-
compute
protected Values compute()
- Specified by:
compute
in classjava.util.concurrent.RecursiveTask<Values>
-
getExecutionContext
public Processor.ExecutionContext getExecutionContext()
-
-