NVelocity.Util
Class SimplePool

Simple object pool. Based on ThreadPool and few other classes * The pool will ignore overflow and return null if empty. *

Constructor Summary
SimplePool(int max)

Property Summary
int Max

Method Summary
object get()
         Get an object from the pool, null if the pool is empty.
void put(object o)
         Add the object to the pool, silent nothing if the pool is full

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Constructor Detail

SimplePool

public SimplePool(int max)

Property Detail

Max

public int Max

Method Detail

get

public object get()

Get an object from the pool, null if the pool is empty.


put

public void put(object o)

Add the object to the pool, silent nothing if the pool is full