Class CompilationTask.ExecutorServiceWrapper
java.lang.Object
java.util.concurrent.FutureTask<Void>
com.oracle.truffle.runtime.CompilationTask.ExecutorServiceWrapper
- All Implemented Interfaces:
Comparable<CompilationTask.ExecutorServiceWrapper>,Runnable,Future<Void>,RunnableFuture<Void>
- Enclosing class:
CompilationTask
public static class CompilationTask.ExecutorServiceWrapper
extends FutureTask<Void>
implements Comparable<CompilationTask.ExecutorServiceWrapper>
Since
BackgroundCompileQueue uses a ThreadPoolExecutor
to run compilations, and since the executor expects each Callable (in our case, the
CompilationTask) to be converted into a FutureTask we use this wrapper around
the CompilationTask just for compatibility with the executor.-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Method Summary
Methods inherited from class java.util.concurrent.FutureTask
cancel, done, exceptionNow, get, get, isCancelled, isDone, resultNow, run, runAndReset, set, setException, state
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<CompilationTask.ExecutorServiceWrapper>
-
toString
- Overrides:
toStringin classFutureTask<Void>
-
getCompileTask
-