Package org.apache.uima.aae.controller
Interface AnalysisEngineInstancePool
- All Known Implementing Classes:
AnalysisEngineInstancePoolWithThreadAffinity
public interface AnalysisEngineInstancePool
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkin
(org.apache.uima.analysis_engine.AnalysisEngine anAnalysisEngine) Adds an instance of AnalysisEngine to the poolorg.apache.uima.analysis_engine.AnalysisEngine
checkout()
Borrows an instance of AnalysisEngine from the poolvoid
destroy()
Destroys Analysis Engine instance pool.boolean
exists()
Checks if the current Thread is assigned to an AE instancevoid
Creates and initializes the AE Pool with intances of AEs provided in the anAnalysisEngineInstanceListint
size()
-
Method Details
-
intialize
Creates and initializes the AE Pool with intances of AEs provided in the anAnalysisEngineInstanceList- Parameters:
anAnalysisEngineInstanceList
- - list of AnalysisEngine instances- Throws:
Exception
-
checkin
Adds an instance of AnalysisEngine to the pool- Parameters:
anAnalysisEngine
- - AnalysisEngine instance to be added to the pool- Throws:
Exception
-
checkout
Borrows an instance of AnalysisEngine from the pool- Returns:
- AnalysisEngine instance
- Throws:
Exception
-
destroy
Destroys Analysis Engine instance pool.- Throws:
Exception
-
exists
boolean exists()Checks if the current Thread is assigned to an AE instance- Returns:
-
size
int size()
-