ecologylab.generic
Class ResourcePoolWithSize<T>

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.generic.ResourcePool<T>
          extended by ecologylab.generic.ResourcePoolWithSize<T>
Direct Known Subclasses:
ByteBufferPool, CharBufferPool, PreppedRequestPool, StringBuilderPool

public abstract class ResourcePoolWithSize<T>
extends ResourcePool<T>

Author:
Zachary O. Toups (toupsz@cs.tamu.edu)

Field Summary
protected  int resourceObjectCapacity
           
 
Fields inherited from class ecologylab.generic.ResourcePool
DEFAULT_POOL_SIZE
 
Constructor Summary
ResourcePoolWithSize(int initialPoolSize, int minimumPoolSize, int resourceObjectCapacity)
           
 
Method Summary
 
Methods inherited from class ecologylab.generic.ResourcePool
acquire, clean, generateNewResource, instantiateResourcesInPool, release
 
Methods inherited from class ecologylab.generic.Debug
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resourceObjectCapacity

protected int resourceObjectCapacity
Constructor Detail

ResourcePoolWithSize

public ResourcePoolWithSize(int initialPoolSize,
                            int minimumPoolSize,
                            int resourceObjectCapacity)
Parameters:
initialPoolSize -
minimumPoolSize -
resourceObjectCapacity - the capacity of objects that are contained in this pool; for example, if this is a ResourcePoolWithSize\, this would specify the size of the StringBuilders in the pool.