ehcache

net.sf.ehcache.transaction.xa.processor
Class XAThreadPool

java.lang.Object
  extended by net.sf.ehcache.transaction.xa.processor.XAThreadPool

public class XAThreadPool
extends Object

Fast 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
static class XAThreadPool.MultiRunner
          Pooled thread wrapper which allows reuse of the same thread
 
Constructor Summary
XAThreadPool()
           
 
Method Summary
 XAThreadPool.MultiRunner getMultiRunner()
          Reserve a thread from the pool
 void shutdown()
          Shutdown the thread pool and release all resources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAThreadPool

public XAThreadPool()
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


ehcache

Copyright 2001-2016, Terracotta, Inc.