public class CompletionExecutor extends Object
ThreadPoolExecutor that can block until all posted operations
are completed.| Modifier and Type | Class and Description |
|---|---|
static interface |
CompletionExecutor.DebugContextRunnable
Interface implemented by tasks that want to be run via
CompletionExecutor.execute(DebugContextRunnable). |
static interface |
CompletionExecutor.Timing |
| Constructor and Description |
|---|
CompletionExecutor(BigBang bb,
ForkJoinPool forkJoin,
Runnable heartbeatCallback) |
| Modifier and Type | Method and Description |
|---|---|
long |
complete() |
void |
execute(CompletionExecutor.DebugContextRunnable command) |
ExecutorService |
getExecutorService() |
long |
getPostedOperations() |
void |
init() |
void |
init(CompletionExecutor.Timing newTiming) |
boolean |
isSequential() |
boolean |
isStarted() |
int |
parallelism() |
void |
setExecutorService(ExecutorService executorService) |
void |
shutdown() |
void |
start() |
public CompletionExecutor(BigBang bb, ForkJoinPool forkJoin, Runnable heartbeatCallback)
public void init()
public void init(CompletionExecutor.Timing newTiming)
public void execute(CompletionExecutor.DebugContextRunnable command)
public void start()
public long complete()
throws InterruptedException
InterruptedExceptionpublic long getPostedOperations()
public boolean isSequential()
public void shutdown()
public boolean isStarted()
public int parallelism()
public ExecutorService getExecutorService()
public void setExecutorService(ExecutorService executorService)