|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.constructs.nonstop.NonstopExecutorServiceImpl
public class NonstopExecutorServiceImpl
Class used by NonStopCache for executing tasks within a timeout limit.
| Constructor Summary | |
|---|---|
NonstopExecutorServiceImpl(java.util.concurrent.ThreadFactory threadFactory)
Constructor accepting a ThreadFactory that will be used to create threads for the pool |
|
| Method Summary | ||
|---|---|---|
|
execute(java.util.concurrent.Callable<V> callable,
long timeoutValueInMillis)
Execute a Callable task with timeout. |
|
void |
shutdown()
Shut down this executor service |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NonstopExecutorServiceImpl(java.util.concurrent.ThreadFactory threadFactory)
ThreadFactory that will be used to create threads for the pool
threadFactory - | Method Detail |
|---|
public <V> V execute(java.util.concurrent.Callable<V> callable,
long timeoutValueInMillis)
throws java.util.concurrent.TimeoutException,
CacheException,
java.lang.InterruptedException
Callable task with timeout. If the task does not complete within the timeout specified, throws a
TimeoutException
execute in interface NonstopExecutorServicejava.util.concurrent.TimeoutException
CacheException
java.lang.InterruptedExceptionpublic void shutdown()
shutdown in interface NonstopExecutorService
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||