Package EDU.oswego.cs.dl.util.concurrent
Class PooledExecutor.DiscardWhenBlocked
- java.lang.Object
-
- EDU.oswego.cs.dl.util.concurrent.PooledExecutor.DiscardWhenBlocked
-
- All Implemented Interfaces:
PooledExecutor.BlockedExecutionHandler
- Enclosing class:
- PooledExecutor
protected class PooledExecutor.DiscardWhenBlocked extends Object implements PooledExecutor.BlockedExecutionHandler
Class defining Discard action.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDiscardWhenBlocked()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanblockedAction(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(Runnable command)
Description copied from interface:PooledExecutor.BlockedExecutionHandlerReturn true if successfully handled so, execute should terminate; else return false if execute loop should be retried.- Specified by:
blockedActionin interfacePooledExecutor.BlockedExecutionHandler
-
-