org.d_haven.mpool

Class ResettableRecyclePolicy

public class ResettableRecyclePolicy extends Object implements RecyclePolicy

This implementation of the ResettableRecyclePolicy is the default implementation for the system. Any class that implements the Resettable interface will be recycled. Classes that have a reset method but do not implement the interface will not be recycled.
Method Summary
voidrecycle(Object pooledObject)
Recycle the object included.
StringtoString()

Method Detail

recycle

public void recycle(Object pooledObject)
Recycle the object included. If the object is not supposed to recycle at all, then this method does nothing.

Parameters: pooledObject the object to recycle

toString

public String toString()