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
TimeoutException
execute
in interface NonstopExecutorService
TimeoutException
CacheException
InterruptedException
public void shutdown()
shutdown
in interface NonstopExecutorService
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.