Apama 10.5.3 | Connecting Apama Applications to External Components | Standard IAF Plug-ins | The Database Connector IAF Adapter (ADBC) | The ADBC Event application programming interface | Handling data storing errors
 
Handling data storing errors
If your application uses the storeData or storeEvent actions, you can use the setStoreErrorCallback action to handle failures. This is useful for applications that make a large number of store calls where high performance is important and acknowledgement for an individual store operation call is not required. A single setStoreErrorCallback action can handle the failure of multiple store calls. The setStoreErrorCallback action is defined as follows:
action setStoreErrorCallback(
action<Connection, integer, integer, string> callback)
{
Calls to storeData and storeEvent actions return unique integer identifiers; use these identifiers in the setStoreErrorCallback action. The first integer specifies the indentifier of the first store action where an error occurred; the second integer specifies the indentifier of the last store action error. callback specifies the name of the user-defined error handling action.