Class 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.RecursiveTask

        exec, getRawResult, setRawResult
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.

        Specified by:
        cancel in interface java.util.concurrent.Future<Values>
        Overrides:
        cancel in class java.util.concurrent.ForkJoinTask<Values>
        Parameters:
        mayInterruptIfRunning - is ignored
      • compute

        protected Values compute()
        Specified by:
        compute in class java.util.concurrent.RecursiveTask<Values>