GUI background tasks should run in `org.jabref.gui.util.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 static final String | |
| private final ExecutorService | |
| public static final HeadlessExecutorService | |
| private static final Logger | |
| private static final String | |
| private final ExecutorService | |
| private final Timer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | execute(@NonNull Runnable 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 Future | |
| public void | |
| public static void | gracefullyShutdown(String name, ExecutorService executorService, int timeoutInSeconds)
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 |
| EXECUTOR_NAME | back to summary |
|---|---|
| private static final String EXECUTOR_NAME | |
| 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 | |
| LOW_PRIORITY_EXECUTOR_NAME | back to summary |
|---|---|
| private static final String LOW_PRIORITY_EXECUTOR_NAME | |
| lowPriorityExecutorService | back to summary |
|---|---|
| private final ExecutorService lowPriorityExecutorService | |
| timer | back to summary |
|---|---|
| private final Timer timer | |
| HeadlessExecutorService | back to summary |
|---|---|
| private HeadlessExecutorService() | |
| execute | back to summary |
|---|---|
| public void execute(@NonNull 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(@NonNull Runnable command) | |
| executeInterruptableTask | back to summary |
|---|---|
| public Future | |
| executeInterruptableTaskAndWait | back to summary |
|---|---|
| public void executeInterruptableTaskAndWait(@NonNull Runnable runnable) | |
| gracefullyShutdown | back to summary |
|---|---|
| public static void gracefullyShutdown(String name, ExecutorService executorService, int timeoutInSeconds) 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. | |
| 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.
| |