|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EDU.oswego.cs.dl.util.concurrent.PooledExecutor.DiscardOldestWhenBlocked
Class defining DiscardOldest action. Under this policy, at most one old unhandled task is discarded. If the new task can then be handed off, it is. Otherwise, the new task is run in the current thread (i.e., RunWhenBlocked is used as a backup policy.)
Constructor Summary | |
---|---|
protected |
PooledExecutor.DiscardOldestWhenBlocked()
|
Method Summary | |
---|---|
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 |
Constructor Detail |
protected PooledExecutor.DiscardOldestWhenBlocked()
Method Detail |
public boolean blockedAction(java.lang.Runnable command) throws java.lang.InterruptedException
PooledExecutor.BlockedExecutionHandler
blockedAction
in interface PooledExecutor.BlockedExecutionHandler
java.lang.InterruptedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |