Class TextAnalysisEnginePool


  • @Deprecated
    public class TextAnalysisEnginePool
    extends AnalysisEnginePool
    Deprecated.
    As of v2.0, use AnalysisEnginePool instead.
    A pool of Text Analysis Engines, which supports reconfiguration. This is not part of the stable UIMA API and may change in future releases.
    • Constructor Detail

      • TextAnalysisEnginePool

        public TextAnalysisEnginePool​(String aName,
                                      int aNumInstances,
                                      ResourceSpecifier aResourceSpecifier)
                               throws ResourceInitializationException
        Deprecated.
        Creates a new TextAnalysisEnginePool.
        Parameters:
        aName - the pool name
        aNumInstances - the number of Resource instances in the pool
        aResourceSpecifier - specifier that describes how to create the Resource instances for the pool
        Throws:
        ResourceInitializationException - if the Resource instances could not be created
    • Method Detail

      • getTAE

        public TextAnalysisEngine getTAE()
        Deprecated.
        Checks out a TextAnalysisEngine from the pool.
        Returns:
        a TAE for use by the client. Returns null if none are available (in which case the client may wait on this object in order to be notified when an instance becomes available).
      • releaseTAE

        public void releaseTAE​(TextAnalysisEngine aTAE)
        Deprecated.
        Checks in a TAE to the pool. Also notifies other Threads that may be waiting for a connection.
        Parameters:
        aTAE - the resource to release
      • getTAE

        public TextAnalysisEngine getTAE​(long aTimeout)
        Deprecated.
        Checks out a TextAnalysisEngine from the pool. If none is currently available, wait for the specified amount of time for one to be checked in.
        Parameters:
        aTimeout - the time to wait in milliseconds. A value of <=0 will wait forever.
        Returns:
        a TAE for use by the client. Returns null if none are available (in which case the client may wait on this object in order to be notified when an instance becomes available).