Class XAThreadPool
- java.lang.Object
-
- net.sf.ehcache.transaction.xa.processor.XAThreadPool
-
public class XAThreadPool extends java.lang.ObjectFast and minimalistic thread pool from which threads can be reserved and used many times until they are manually released.- Author:
- Ludovic Orban
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXAThreadPool.MultiRunnerPooled thread wrapper which allows reuse of the same thread
-
Constructor Summary
Constructors Constructor Description XAThreadPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XAThreadPool.MultiRunnergetMultiRunner()Reserve a thread from the poolvoidshutdown()Shutdown the thread pool and release all resources
-
-
-
Method Detail
-
getMultiRunner
public XAThreadPool.MultiRunner getMultiRunner()
Reserve a thread from the pool- Returns:
- a MultiRunner which wraps the reserved thread
-
shutdown
public void shutdown()
Shutdown the thread pool and release all resources
-
-