Exception handling and thread safety
Exception handling
Several of the methods and functions of the API can throw exceptions if they fail or encounter exceptional circumstances. All of these are of the following type:
com::apama::EngineException in C++
com.apama.EngineException in Java
Apama.EngineException in .NET
An exception contains a text message indicating the nature of the problem encountered.
Thread safety
All client APIs are thread-safe, unless otherwise specified, in the sense that you can call API methods from any thread. Several background threads are created during the usage of a client API. Events received from a correlator will be handled in one of background threads, so you cannot assume that events will be delivered to you on any particular thread.