public abstract static class ThreadedWorkerManager.AbstractManagedBlockingWorker extends Object implements Worker
Constructor and Description |
---|
AbstractManagedBlockingWorker() |
Modifier and Type | Method and Description |
---|---|
void |
executeBlockingIO(@NotNull Runnable task)
Performs the given task inline, and increase available threads in the pool
by one for the execution of other tasks.
|
public final void executeBlockingIO(@NotNull @NotNull Runnable task)
Worker
It is imperative to wrap all I/O tasks in this method to prevent starving other parsing tasks from threads.
executeBlockingIO
in interface Worker
task
- the I/O blocking task to executeCopyright © 2019. All rights reserved.