Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

Public Member Functions | Protected Member Functions | Private Attributes

org::apache::uima::collection::impl::cpm::engine::CPECasPool Class Reference

Collaboration diagram for org::apache::uima::collection::impl::cpm::engine::CPECasPool:
Collaboration graph

List of all members.

Public Member Functions

 CPECasPool (int aNumInstances, CasManager aCasManager) throws ResourceInitializationException
 CPECasPool (int aNumInstances, CasManager aCasManager, Properties aPerformanceTuningSettings) throws ResourceInitializationException
synchronized CAS getCas ()
synchronized CAS getCas (long aTimeout)
synchronized CAS getCheckedOutCas (int aIndex)
synchronized int getCheckedOutCasCount ()
int getSize ()
synchronized void releaseCas (CAS aCas)

Protected Member Functions

void fillPool (CasManager aCasManager, Properties aPerformanceTuningSettings) throws ResourceInitializationException

Private Attributes

LinkedList checkedOutInstances = new LinkedList()
Vector mAllInstances = new Vector()
Vector mFreeInstances = new Vector()
final int mNumInstances

Detailed Description

Implements object pooling mechanism to limit number of CAS instances. Cas'es are checked out, used and checked back in when done.

Definition at line 37 of file CPECasPool.java.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index