org.exoplatform.services.threadpool.impl
Interface ThreadPoolServiceImpl.BlockedExecutionStrategy

All Known Implementing Classes:
ThreadPoolServiceImpl.DiscardWhenBlocked, ThreadPoolServiceImpl.RunWhenBlocked, ThreadPoolServiceImpl.WaitWhenBlocked
Enclosing class:
ThreadPoolServiceImpl

protected static interface ThreadPoolServiceImpl.BlockedExecutionStrategy

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 blockedExectionStrategy.


Method Summary
 boolean blockedAction(Runnable task)
          Return true if successfully handled so, execute should terminate; else return false if execute loop should be retried.
 

Method Detail

blockedAction

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



Copyright © 2009 eXo Platform SAS. All Rights Reserved.