|
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(ThreadFactory threadFactory)
Constructor accepting a ThreadFactory that will be used to create threads for the pool |
|
| Method Summary | ||
|---|---|---|
|
execute(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(ThreadFactory threadFactory)
ThreadFactory that will be used to create threads for the pool
threadFactory - | Method Detail |
|---|
public <V> V execute(Callable<V> callable,
long timeoutValueInMillis)
throws TimeoutException,
CacheException,
InterruptedException
Callable task with timeout. If the task does not complete within the timeout specified, throws a
TimeoutException
execute in interface NonstopExecutorServiceTimeoutException
CacheException
InterruptedExceptionpublic void shutdown()
shutdown in interface NonstopExecutorService
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||