40 |
|
* <pre> |
41 |
|
* class GraphVisitor extends LinkedAsyncAction { |
42 |
|
* final Node node; |
43 |
< |
* GraphVisitor(GraphVistor parent, Node node) { |
43 |
> |
* GraphVisitor(GraphVisitor parent, Node node) { |
44 |
|
* super(parent); this.node = node; |
45 |
|
* } |
46 |
|
* protected void compute() { |
69 |
|
static final AtomicIntegerFieldUpdater<LinkedAsyncAction> controlStateUpdater = |
70 |
|
AtomicIntegerFieldUpdater.newUpdater(LinkedAsyncAction.class, "controlState"); |
71 |
|
|
72 |
– |
|
72 |
|
/** |
73 |
|
* Parent to notify on completion |
74 |
|
*/ |
156 |
|
* default version of this method does nothing and returns |
157 |
|
* {@code true}. |
158 |
|
* @return true if this task's exception should be propagated to |
159 |
< |
* this task's parent. |
159 |
> |
* this task's parent |
160 |
|
*/ |
161 |
|
protected boolean onException() { |
162 |
|
return true; |