|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.transaction.xa.XAThreadPool.MultiRunner
public static final class XAThreadPool.MultiRunner
Pooled thread wrapper which allows reuse of the same thread
Method Summary | |
---|---|
java.lang.Object |
execute(java.util.concurrent.Callable callable)
Execute a Callable on the wrapped thread and return its result |
void |
release()
Release the wrapped thread back the the containing thread pool |
void |
run()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Object execute(java.util.concurrent.Callable callable) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
callable
- The Callable to execute
java.util.concurrent.ExecutionException
- thrown when something went wrong during execution
java.lang.InterruptedException
- thrown when the executing thread got interruptedpublic void release()
public void run()
run
in interface java.lang.Runnable
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |