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(java.lang.Runnable task)
Return true if successfully handled so, execute should terminate; else
return false if execute loop should be retried. |
blockedAction
boolean blockedAction(java.lang.Runnable task)
- Return true if successfully handled so, execute should terminate; else
return false if execute loop should be retried.
Copyright © 2010 eXo Platform SAS. All Rights Reserved.