Package EDU.oswego.cs.dl.util.concurrent
Class PooledExecutor.RunWhenBlocked
- java.lang.Object
-
- EDU.oswego.cs.dl.util.concurrent.PooledExecutor.RunWhenBlocked
-
- All Implemented Interfaces:
PooledExecutor.BlockedExecutionHandler
- Enclosing class:
- PooledExecutor
protected class PooledExecutor.RunWhenBlocked extends java.lang.Object implements PooledExecutor.BlockedExecutionHandler
Class defining Run action.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RunWhenBlocked()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
blockedAction(java.lang.Runnable command)
Return true if successfully handled so, execute should terminate; else return false if execute loop should be retried.
-
-
-
Method Detail
-
blockedAction
public boolean blockedAction(java.lang.Runnable command)
Description copied from interface:PooledExecutor.BlockedExecutionHandler
Return true if successfully handled so, execute should terminate; else return false if execute loop should be retried.- Specified by:
blockedAction
in interfacePooledExecutor.BlockedExecutionHandler
-
-