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.