net.sf.ehcache.constructs.nonstop
Interface NonstopExecutorService
- All Known Implementing Classes:
- NonstopExecutorServiceImpl
public interface NonstopExecutorService
- Author:
- Abhishek Sanoujam
Method Summary |
|
execute(Callable<V> callable,
long timeoutValueInMillis)
Execute a Callable task with timeout. |
void |
shutdown()
Shut down this executor service |
PRINT_STACK_TRACE_ON_EXCEPTION_PROPERTY
static final String PRINT_STACK_TRACE_ON_EXCEPTION_PROPERTY
- System property name which if set to true prints stack trace of nonstop thread upon exception
- See Also:
- Constant Field Values
execute
<V> V execute(Callable<V> callable,
long timeoutValueInMillis)
throws TimeoutException,
CacheException,
InterruptedException
- Execute a
Callable
task with timeout. If the task does not complete within the timeout specified, throws a
TimeoutException
- Type Parameters:
V
- - Parameters:
callable
- timeoutValueInMillis
-
- Returns:
- the return value from the callable
- Throws:
TimeoutException
CacheException
InterruptedException
shutdown
void shutdown()
- Shut down this executor service
Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.