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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
blockedAction
(Runnable command) Return true if successfully handled so, execute should terminate; else return false if execute loop should be retried.
-
Constructor Details
-
DiscardWhenBlocked
protected DiscardWhenBlocked()
-
-
Method Details
-
blockedAction
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
-