Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-1754

Incorrect description of getCAS() method in UIMA AS documentation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3AS
    • 2.3.1AS
    • Async Scaleout
    • None

    Description

      Chapter 4.2 The UimaAsynchronousEngine Interface describes UIMA AS client interface. Its description of getCAS() tells the reader to call reset() or release() on the CAS before calling getCAS() again. This is wrong when the client application uses an async style of sending CASes using sendCAS() method. When using async calls, the framework actually releases a CAS after the user's listener callback completes. The code calls release() if the user callback is not provided. The only time when the user's code must call release() or reset() is when the synchronous calls are made via sendAndReceive(). In this style of invocation, the framework does not call release() nor reset() and it is user's responsibility to do so.

      Attachments

        Activity

          People

            cwiklik Jaroslaw Cwiklik
            cwiklik Jaroslaw Cwiklik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: