Package graphql.util
Class TreeParallelTransformer.EnterAction
- java.lang.Object
-
- java.util.concurrent.ForkJoinTask<T>
-
- java.util.concurrent.CountedCompleter
-
- graphql.util.TreeParallelTransformer.EnterAction
-
- All Implemented Interfaces:
java.io.Serializable,java.util.concurrent.Future
- Enclosing class:
- TreeParallelTransformer<T>
private class TreeParallelTransformer.EnterAction extends java.util.concurrent.CountedCompleter
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<DefaultTraverserContext>childrenprivate DefaultTraverserContextcurrentContextprivate java.util.List<NodeZipper<T>>myZippersprivate Tresultprivate TraverserVisitor<? super T>visitor
-
Constructor Summary
Constructors Modifier Constructor Description privateEnterAction(java.util.concurrent.CountedCompleter parent, DefaultTraverserContext currentContext, TraverserVisitor<? super T> visitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompute()TgetRawResult()private NodeZipper<T>moveUp(T parent, java.util.List<NodeZipper<T>> sameParent)voidonCompletion(java.util.concurrent.CountedCompleter caller)-
Methods inherited from class java.util.concurrent.CountedCompleter
addToPendingCount, compareAndSetPendingCount, complete, decrementPendingCountUnlessZero, exec, firstComplete, getCompleter, getPendingCount, getRoot, helpComplete, nextComplete, onExceptionalCompletion, propagateCompletion, quietlyCompleteRoot, setPendingCount, setRawResult, tryComplete
-
Methods inherited from class java.util.concurrent.ForkJoinTask
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
-
-
-
-
Field Detail
-
currentContext
private DefaultTraverserContext currentContext
-
visitor
private TraverserVisitor<? super T> visitor
-
children
private java.util.List<DefaultTraverserContext> children
-
myZippers
private java.util.List<NodeZipper<T>> myZippers
-
result
private T result
-
-
Constructor Detail
-
EnterAction
private EnterAction(java.util.concurrent.CountedCompleter parent, DefaultTraverserContext currentContext, TraverserVisitor<? super T> visitor)
-
-
Method Detail
-
compute
public void compute()
- Specified by:
computein classjava.util.concurrent.CountedCompleter
-
onCompletion
public void onCompletion(java.util.concurrent.CountedCompleter caller)
- Overrides:
onCompletionin classjava.util.concurrent.CountedCompleter
-
getRawResult
public T getRawResult()
- Overrides:
getRawResultin classjava.util.concurrent.CountedCompleter
-
moveUp
private NodeZipper<T> moveUp(T parent, java.util.List<NodeZipper<T>> sameParent)
-
-