static final class ForkJoinPool.EmptyTask extends ForkJoinTask<java.lang.Void>
ForkJoinTask.AdaptedCallable<T>, ForkJoinTask.AdaptedRunnable<T>, ForkJoinTask.AdaptedRunnableAction, ForkJoinTask.ExceptionNode
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
CANCELLED, DONE_MASK, EXCEPTIONAL, NORMAL, SIGNAL, SMASK, status
Constructor and Description |
---|
ForkJoinPool.EmptyTask() |
Modifier and Type | Method and Description |
---|---|
boolean |
exec()
Immediately performs the base action of this task and returns
true if, upon return from this method, this task is guaranteed
to have completed normally.
|
java.lang.Void |
getRawResult()
Returns the result that would be returned by
ForkJoinTask.join() , even
if this task completed abnormally, or null if this task
is not known to have been completed. |
void |
setRawResult(java.lang.Void x)
Forces the given value to be returned as a result.
|
adapt, adapt, adapt, cancel, cancelIgnoringExceptions, compareAndSetForkJoinTaskTag, complete, completeExceptionally, doExec, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpExpungeStaleExceptions, helpQuiesce, inForkJoinPool, internalPropagateException, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, recordExceptionalCompletion, reinitialize, rethrow, setForkJoinTaskTag, trySetSignal, tryUnfork, uncheckedThrow
private static final long serialVersionUID
public final java.lang.Void getRawResult()
ForkJoinTask
ForkJoinTask.join()
, even
if this task completed abnormally, or null
if this task
is not known to have been completed. This method is designed
to aid debugging, as well as to support extensions. Its use in
any other context is discouraged.getRawResult
in class ForkJoinTask<java.lang.Void>
null
if not completedpublic final void setRawResult(java.lang.Void x)
ForkJoinTask
setRawResult
in class ForkJoinTask<java.lang.Void>
x
- the valuepublic final boolean exec()
ForkJoinTask
exec
in class ForkJoinTask<java.lang.Void>
true
if this task is known to have completed normally