Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.scopemvc.util
Interface ObjectPool  view ObjectPool download ObjectPool.java

All Known Implementing Classes:
BasicObjectPool

public interface ObjectPool

Pool of objects

Version:
$Revision: 1.2 $

Method Summary
 java.lang.Object borrowObject()
          Obtains an instance of the pooled class.
 java.lang.Object borrowObjectIfExists()
          Obtains an instance of the pooled class.
 void returnObject(java.lang.Object object)
          Returns an instance to the pool.
 

Method Detail

borrowObject

public java.lang.Object borrowObject()
Obtains an instance of the pooled class. Blocks if no free instances.


borrowObjectIfExists

public java.lang.Object borrowObjectIfExists()
Obtains an instance of the pooled class. Returns null if no free instances.


returnObject

public void returnObject(java.lang.Object object)
Returns an instance to the pool.