java.lang.Object
org.ematgine.utils.concurrent.PooledExecutor.BlockedExecutionHandler
- Direct Known Subclasses:
- PooledExecutor.DiscardWhenBlocked, PooledExecutor.RunWhenBlocked, PooledExecutor.WaitWhenBlocked
- Enclosing class:
- PooledExecutor
- protected abstract class PooledExecutor.BlockedExecutionHandler
- extends java.lang.Object
Class for actions to take when execute() blocks. Uses Strategy
pattern to represent different actions. You can add more
in subclasses, and/or create subclasses of these. If so,
you will also want to add or modify the corresponding methods that
set the current blockedExectionHandler_.
|
Method Summary |
(package private) abstract boolean |
blockedAction(java.lang.Runnable command)
Return true if successfully handled so, execute should terminate;
else return false if execute loop should be retried |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PooledExecutor.BlockedExecutionHandler
protected PooledExecutor.BlockedExecutionHandler()
blockedAction
abstract boolean blockedAction(java.lang.Runnable command)
- Return true if successfully handled so, execute should terminate;
else return false if execute loop should be retried