GUI background tasks should run in UiTaskExecutor.
This is a wrapper around ExecutorService
Offers both high-priority and low-priority thread pools.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ExecutorService | |
| public static final HeadlessExecutorService | |
| private static final Logger | |
| private final ExecutorService | |
| private Thread | |
| private final Timer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | execute(Runnable
the runnable task command)Implements java. Executes the given command at some time in the future. |
| public <T> Future | |
| public <T> List | Returns: A List of Future objects that provide the returning values.The tasks to execute tasks)Executes a collection of callable tasks and returns a List of the resulting Future objects after the calculation is done. |
| public <T> List | |
| public void | |
| public void | |
| public void | |
| public static void | gracefullyShutdown(ExecutorService executorService)
Shuts down the provided executor service by first trying a normal shutdown, then waiting for the shutdown and then forcibly shutting it down. |
| public void | |
| public void | |
| public void | |
| public void |
| executorService | back to summary |
|---|---|
| private final ExecutorService executorService | |
| INSTANCE | back to summary |
|---|---|
| public static final HeadlessExecutorService INSTANCE | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| lowPriorityExecutorService | back to summary |
|---|---|
| private final ExecutorService lowPriorityExecutorService | |
| remoteThread | back to summary |
|---|---|
| private Thread remoteThread | |
| timer | back to summary |
|---|---|
| private final Timer timer | |
| HeadlessExecutorService | back to summary |
|---|---|
| private HeadlessExecutorService() | |
| execute | back to summary |
|---|---|
| public void execute(Runnable command) Implements java. Doc from java. Executes the given command at some time in the future. The command
may execute in a new thread, in a pooled thread, or in the calling
thread, at the discretion of the
| |
| execute | back to summary |
|---|---|
| public <T> Future Executes a callable task that provides a return value after the calculation is done. | |
| executeAll | back to summary |
|---|---|
| public <T> List Executes a collection of callable tasks and returns a List of the resulting Future objects after the calculation is done.
| |
| executeAll | back to summary |
|---|---|
| public <T> List | |
| executeAndWait | back to summary |
|---|---|
| public void executeAndWait(Runnable command) | |
| executeInterruptableTask | back to summary |
|---|---|
| public void executeInterruptableTask(final Runnable runnable, String taskName) | |
| executeInterruptableTaskAndWait | back to summary |
|---|---|
| public void executeInterruptableTaskAndWait(Runnable runnable) | |
| gracefullyShutdown | back to summary |
|---|---|
| public static void gracefullyShutdown(ExecutorService executorService) Shuts down the provided executor service by first trying a normal shutdown, then waiting for the shutdown and then forcibly shutting it down. Returns if the status of the shut down is known. | |
| shutdownEverything | back to summary |
|---|---|
| public void shutdownEverything() Shuts everything down. After termination, this method returns. | |
| startRemoteThread | back to summary |
|---|---|
| public void startRemoteThread(Thread thread) | |
| stopRemoteThread | back to summary |
|---|---|
| public void stopRemoteThread() | |
| submit | back to summary |
|---|---|
| public void submit(TimerTask timerTask, long millisecondsDelay) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| name | back to summary |
|---|---|
| private final String name | |
| task | back to summary |
|---|---|
| private final Runnable task | |
| NamedRunnable | back to summary |
|---|---|
| private NamedRunnable(String name, Runnable runnable) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |