public abstract class AbstractExecutionService extends Object implements ExecutionService
ExecutionService.Cancellable, ExecutionService.CloseableExecutor
Modifier and Type | Method and Description |
---|---|
void |
cancelDelayedTask(ExecutionService.Cancellable cancellableTask)
Best effort cancellation of a delayed task.
|
void |
dumpState() |
static void |
dumpThreads() |
ExecutionService.CloseableExecutor |
getConcurrentExecutor()
Get the concurrent execution service.
|
ExecutionService.CloseableExecutor |
getSerialExecutor()
Get a new, serial executor.
|
static boolean |
throttled() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultExecutor, postDelayedOnExecutor
public static boolean throttled()
public static void dumpThreads()
@NonNull public ExecutionService.CloseableExecutor getSerialExecutor()
ExecutionService
getSerialExecutor
in interface ExecutionService
@NonNull public ExecutionService.CloseableExecutor getConcurrentExecutor()
ExecutionService
getConcurrentExecutor
in interface ExecutionService
public void cancelDelayedTask(@NonNull ExecutionService.Cancellable cancellableTask)
ExecutionService
cancelDelayedTask
in interface ExecutionService
cancellableTask
- object returned by a previous call to postDelayedOnExecutor.public void dumpState()