ehcache

net.sf.ehcache.constructs.nonstop
Interface NonstopExecutorService

All Known Implementing Classes:
NonstopExecutorServiceImpl

public interface NonstopExecutorService

Author:
Abhishek Sanoujam

Field Summary
static String PRINT_STACK_TRACE_ON_EXCEPTION_PROPERTY
          System property name which if set to true prints stack trace of nonstop thread upon exception
 
Method Summary
<V> V
execute(Callable<V> callable, long timeoutValueInMillis)
          Execute a Callable task with timeout.
 void shutdown()
          Shut down this executor service
 

Field Detail

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
Method Detail

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


ehcache

Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.