org.d_haven.mpool
Class NullRecyclePolicy

java.lang.Object
  extended by org.d_haven.mpool.NullRecyclePolicy
All Implemented Interfaces:
RecyclePolicy

public class NullRecyclePolicy
extends java.lang.Object
implements RecyclePolicy

The NullRecyclePolicy is provided to turn off any recycling of pooled objects for a pool.


Constructor Summary
NullRecyclePolicy()
           
 
Method Summary
 void recycle(java.lang.Object pooledObject)
          All objects are not supposed to recycle, so this method does nothing.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullRecyclePolicy

public NullRecyclePolicy()
Method Detail

recycle

public void recycle(java.lang.Object pooledObject)
All objects are not supposed to recycle, so this method does nothing.

Specified by:
recycle in interface RecyclePolicy
Parameters:
pooledObject - the object to recycle

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object