EDU.oswego.cs.dl.util.concurrent

Class PooledExecutor.DiscardOldestWhenBlocked

protected class PooledExecutor.DiscardOldestWhenBlocked extends Object implements PooledExecutor.BlockedExecutionHandler

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.)
Method Summary
booleanblockedAction(Runnable command)

Method Detail

blockedAction

public boolean blockedAction(Runnable command)