Module java.base
Package java.util.concurrent

# Class ForkJoinTask

=
public abstract class ForkJoinTask<V>
extends java.lang.Object
implements java.io.Serializable, java.util.concurrent.Future<V>

## Constructors

- =
  public ForkJoinTask()

## Methods

- =
  public static java.util.concurrent.ForkJoinTask<?> adapt(java.lang.Runnable arg0)
- =
  public static <T> java.util.concurrent.ForkJoinTask<T> adapt(java.lang.Runnable arg0, T arg1)
- =
  public static <T> java.util.concurrent.ForkJoinTask<T> adapt(java.util.concurrent.Callable<? extends T> arg0)
- =
  public static java.util.concurrent.ForkJoinTask<?> adaptInterruptible(java.lang.Runnable arg0)
- =
  public static <T> java.util.concurrent.ForkJoinTask<T> adaptInterruptible(java.lang.Runnable arg0, T arg1)
- =
  public static <T> java.util.concurrent.ForkJoinTask<T> adaptInterruptible(java.util.concurrent.Callable<? extends T> arg0)
- =
  public boolean cancel(boolean arg0)
- =
  public final boolean compareAndSetForkJoinTaskTag(short arg0, short arg1)
- =
  public void complete(V arg0)
- =
  public void completeExceptionally(java.lang.Throwable arg0)
- =
  public java.lang.Throwable exceptionNow()
- =
  protected abstract boolean exec()
- =
  public final java.util.concurrent.ForkJoinTask<V> fork()
- =
  public final V get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
- =
  public final V get(long arg0, java.util.concurrent.TimeUnit arg1) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
- =
  public final java.lang.Throwable getException()
- =
  public final short getForkJoinTaskTag()
- =
  public static java.util.concurrent.ForkJoinPool getPool()
- =
  public static int getQueuedTaskCount()
- =
  public abstract V getRawResult()
- =
  public static int getSurplusQueuedTaskCount()
- =
  public static void helpQuiesce()
- =
  public static boolean inForkJoinPool()
- =
  public final V invoke()
- =
  public static void invokeAll(java.util.concurrent.ForkJoinTask<?>[] arg0)
- =
  public static <T> java.util.Collection<T> invokeAll(java.util.Collection<T> arg0)
- =
  public static void invokeAll(java.util.concurrent.ForkJoinTask<?> arg0, java.util.concurrent.ForkJoinTask<?> arg1)
- =
  public final boolean isCancelled()
- =
  public final boolean isCompletedAbnormally()
- =
  public final boolean isCompletedNormally()
- =
  public final boolean isDone()
- =
  public final V join()
- =
  protected static java.util.concurrent.ForkJoinTask<?> peekNextLocalTask()
- =
  protected static java.util.concurrent.ForkJoinTask<?> pollNextLocalTask()
- =
  protected static java.util.concurrent.ForkJoinTask<?> pollSubmission()
- =
  protected static java.util.concurrent.ForkJoinTask<?> pollTask()
- =
  public final void quietlyComplete()
- =
  public final void quietlyInvoke()
- =
  public final void quietlyJoin()
- =
  public final boolean quietlyJoin(long arg0, java.util.concurrent.TimeUnit arg1) throws java.lang.InterruptedException
- =
  public final boolean quietlyJoinUninterruptibly(long arg0, java.util.concurrent.TimeUnit arg1)
- =
  public void reinitialize()
- =
  public V resultNow()
- =
  public final short setForkJoinTaskTag(short arg0)
- =
  protected abstract void setRawResult(V arg0)
- =
  public java.util.concurrent.Future.State state()
- =
  public boolean tryUnfork()

## Serialized Form

=

### serialVersionUID

=-7721805057305804111

### Serialized Fields

- =
  int status

### Serialization Methods

- =
  private void readObject(java.io.ObjectInputStream arg0) throws java.io.IOException, java.lang.ClassNotFoundException
- =
  private void writeObject(java.io.ObjectOutputStream arg0) throws java.io.IOException

## Summary

No differences.