public static class CompilationTask.ExecutorServiceWrapper extends FutureTask<Void> implements Comparable<CompilationTask.ExecutorServiceWrapper>
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.| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CompilationTask.ExecutorServiceWrapper that) |
CompilationTask |
getCompileTask() |
String |
toString() |
cancel, done, get, get, isCancelled, isDone, run, runAndReset, set, setExceptionpublic int compareTo(CompilationTask.ExecutorServiceWrapper that)
compareTo in interface Comparable<CompilationTask.ExecutorServiceWrapper>public String toString()
toString in class FutureTask<Void>public CompilationTask getCompileTask()