org.fusesource.hawtdispatch.util
Class ThreadLocalPool<T>

java.lang.Object
  extended by org.fusesource.hawtdispatch.util.ThreadLocalPool<T>
Direct Known Subclasses:
BufferPool

public abstract class ThreadLocalPool<T>
extends Object

Author:
Hiram Chirino

Constructor Summary
ThreadLocalPool()
           
 
Method Summary
 void checkin(T value)
           
 T checkout()
           
protected abstract  T create()
           
protected  int maxPoolSizePerThread()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalPool

public ThreadLocalPool()
Method Detail

create

protected abstract T create()

maxPoolSizePerThread

protected int maxPoolSizePerThread()

checkout

public T checkout()

checkin

public void checkin(T value)


Copyright © 2010-2014 FuseSource, Corp.. All Rights Reserved.