public interface NonstopExecutorService
Modifier and Type | Field and Description |
---|---|
static String |
PRINT_STACK_TRACE_ON_EXCEPTION_PROPERTY
System property name which if set to true prints stack trace of nonstop thread upon exception
|
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
|
static final String PRINT_STACK_TRACE_ON_EXCEPTION_PROPERTY
<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
V
- callable
- timeoutValueInMillis
- TimeoutException
CacheException
InterruptedException
void shutdown()
Copyright © 2018. All rights reserved.