- All Superinterfaces:
- All Known Implementing Classes:
public interface BlockingTaskAwareExecutorService extends java.util.concurrent.ExecutorServiceExecutor service that is aware of
BlockingRunnableand only dispatch the runnable to a thread when it has low (or no) probability of blocking the thread. However, it is not aware of the changes in the state so you must invoke
checkForReadyTasks()to notify this that some runnable may be ready to be processed.
- Pedro Ruivo
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
checkForReadyTasks()It checks for tasks ready to be processed in this
execute(BlockingRunnable runnable)Executes the given command at some time in the future when the command is less probably to block a thread.
void execute(BlockingRunnable runnable)
runnable- the command to execute
void checkForReadyTasks()It checks for tasks ready to be processed in this
ExecutorService. The invocation is done asynchronously, so the invoker is never blocked.