Class XAThreadPool.MultiRunner
- java.lang.Object
-
- net.sf.ehcache.transaction.xa.processor.XAThreadPool.MultiRunner
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- XAThreadPool
public static final class XAThreadPool.MultiRunner extends java.lang.Object implements java.lang.RunnablePooled thread wrapper which allows reuse of the same thread
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectexecute(java.util.concurrent.Callable callable)Execute a Callable on the wrapped thread and return its resultvoidrelease()Release the wrapped thread back the the containing thread poolvoidrun()
-
-
-
Method Detail
-
execute
public java.lang.Object execute(java.util.concurrent.Callable callable) throws java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionExecute a Callable on the wrapped thread and return its result- Parameters:
callable- The Callable to execute- Returns:
- the Object returned by the Callable
- Throws:
java.util.concurrent.ExecutionException- thrown when something went wrong during executionjava.lang.InterruptedException- thrown when the executing thread got interrupted
-
release
public void release()
Release the wrapped thread back the the containing thread pool
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
-