public interface BlockingTaskAwareExecutorService extends ExecutorService
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.
|Modifier and Type||Method and Description|
It checks for tasks ready to be processed in the thread.
Executes the given command at some time in the future when the command is less probably to block a thread.
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
void execute(BlockingRunnable runnable)
runnable- the command to execute
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.