Interface AnalysisEngineInstancePool

All Known Implementing Classes:
AnalysisEngineInstancePoolWithThreadAffinity

public interface AnalysisEngineInstancePool
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkin(org.apache.uima.analysis_engine.AnalysisEngine anAnalysisEngine)
    Adds an instance of AnalysisEngine to the pool
    org.apache.uima.analysis_engine.AnalysisEngine
    Borrows an instance of AnalysisEngine from the pool
    void
    Destroys Analysis Engine instance pool.
    boolean
    Checks if the current Thread is assigned to an AE instance
    void
    intialize(List anAnalysisEngineInstanceList)
    Creates and initializes the AE Pool with intances of AEs provided in the anAnalysisEngineInstanceList
    int
     
  • Method Details

    • intialize

      void intialize(List anAnalysisEngineInstanceList) throws Exception
      Creates and initializes the AE Pool with intances of AEs provided in the anAnalysisEngineInstanceList
      Parameters:
      anAnalysisEngineInstanceList - - list of AnalysisEngine instances
      Throws:
      Exception
    • checkin

      void checkin(org.apache.uima.analysis_engine.AnalysisEngine anAnalysisEngine) throws Exception
      Adds an instance of AnalysisEngine to the pool
      Parameters:
      anAnalysisEngine - - AnalysisEngine instance to be added to the pool
      Throws:
      Exception
    • checkout

      org.apache.uima.analysis_engine.AnalysisEngine checkout() throws Exception
      Borrows an instance of AnalysisEngine from the pool
      Returns:
      AnalysisEngine instance
      Throws:
      Exception
    • destroy

      void destroy() throws Exception
      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()