Protomatter Software v1.1.7

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.Map 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.Map 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 Software v1.1.7
Copyright 1998-2002 Nate Sammons

Protomatter Software v1.1.7 http://protomatter.sourceforge.net/1.1.7