Protomatter Classes v1.1.6

com.protomatter.pool
Interface ObjectPool

All Known Implementing Classes:
SimpleObjectPool

public interface ObjectPool

The interface for a generic object pool.

See Also:
ObjectPoolObject

Method Summary
 void checkin(ObjectPoolObject opo)
          Put an object back into the pool.
 ObjectPoolObject checkout()
          Get an object out of the pool.
 int getObjectsInUse()
          Get the current number of objects that have been checked out.
 void init(java.util.Hashtable ht)
          Initialize the pool.
 void reInitializeObjectPool()
          Re-initialize the object pool.
 

Method Detail

checkout

public ObjectPoolObject checkout()
                          throws java.lang.Exception
Get an object out of the pool.
Throws:
java.lang.Exception - If there is a problem checking something out of the pool.

checkin

public void checkin(ObjectPoolObject opo)
             throws java.lang.Exception
Put an object back into the pool.

init

public void init(java.util.Hashtable ht)
          throws java.lang.Exception
Initialize the pool.
Throws:
java.lang.Exception - If there is a problem initializing the pool.

reInitializeObjectPool

public void reInitializeObjectPool()
                            throws java.lang.Exception
Re-initialize the object pool.
Throws:
java.lang.Exception - If there is a problem re-initializing the pool.

getObjectsInUse

public int getObjectsInUse()
Get the current number of objects that have been checked out.

Protomatter Classes v1.1.6
Copyright 1998-2001 Nate Sammons

Protomatter Classes v1.1.6 http://protomatter.sourceforge.net/1.1.6