org.apache.jasper.util
Class SimplePool
public final
class
SimplePool
extends Object
Simple object pool. Based on ThreadPool and few other classes
The pool will ignore overflow and return null if empty.
Author: Gal Shachor Costin
Method Summary |
Object | get()
Get an object from the pool, null if the pool is empty. |
int | getMax()
Return the size of the pool |
void | put(Object o)
Adds the given object to the pool, and does nothing if the pool is full |
public SimplePool()
public SimplePool(int max)
public Object get()
Get an object from the pool, null if the pool is empty.
public int getMax()
Return the size of the pool
public void put(Object o)
Adds the given object to the pool, and does nothing if the pool is full
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.