CAS getCAS(): Requests a new CAS instance from a CAS pool. This method blocks until
a free instance of CAS is available in the CAS pool. Applications that use synchronous
sendAndReceive() and getCAS() need to call CAS.reset() before reusing the CAS,
or CAS.release() to return it to the CAS pool. Applications that use asynchronous
sendCAS() and getCAS() must not call CAS.release() nor CAS.reset() unless
sendCAS() throws an exception. If sendCAS() call is successful, the UIMA AS framework
code releases each CAS automatically when a reply is received. The framework releases a
CAS right after a callback listener entityProcessComplete() completes.
Read full article from [UIMA-1754] Incorrect description of getCAS() method in UIMA AS documentation - ASF JIRA
No comments:
Post a Comment