Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.ematgine.utils.concurrent
Class PooledExecutor.BlockedExecutionHandler  view PooledExecutor.BlockedExecutionHandler download PooledExecutor.BlockedExecutionHandler.java

java.lang.Object
  extended byorg.ematgine.utils.concurrent.PooledExecutor.BlockedExecutionHandler
Direct Known Subclasses:
PooledExecutor.DiscardWhenBlocked, PooledExecutor.RunWhenBlocked, PooledExecutor.WaitWhenBlocked
Enclosing class:
PooledExecutor

protected abstract class PooledExecutor.BlockedExecutionHandler
extends java.lang.Object

Class for actions to take when execute() blocks. Uses Strategy pattern to represent different actions. You can add more in subclasses, and/or create subclasses of these. If so, you will also want to add or modify the corresponding methods that set the current blockedExectionHandler_.


Constructor Summary
protected PooledExecutor.BlockedExecutionHandler()
           
 
Method Summary
(package private) abstract  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

PooledExecutor.BlockedExecutionHandler

protected PooledExecutor.BlockedExecutionHandler()
Method Detail

blockedAction

abstract boolean blockedAction(java.lang.Runnable command)
Return true if successfully handled so, execute should terminate; else return false if execute loop should be retried