public class NonstopExecutorServiceImpl extends Object implements NonstopExecutorService
PRINT_STACK_TRACE_ON_EXCEPTION_PROPERTY| Constructor and Description |
|---|
NonstopExecutorServiceImpl(ThreadFactory threadFactory)
Constructor accepting a
ThreadFactory that will be used to create threads for the pool |
| Modifier and Type | Method and Description |
|---|---|
<V> V |
execute(Callable<V> callable,
long timeoutValueInMillis)
Execute a
Callable task with timeout. |
void |
shutdown()
Shut down this executor service
|
public NonstopExecutorServiceImpl(ThreadFactory threadFactory)
ThreadFactory that will be used to create threads for the poolthreadFactory - 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
TimeoutExceptionexecute in interface NonstopExecutorServiceTimeoutExceptionCacheExceptionInterruptedExceptionpublic void shutdown()
shutdown in interface NonstopExecutorServiceCopyright © 2021. All rights reserved.