12.2.5. Persistence event handler
This handler intercepts error notifications raised by the client persistence component. Apart from notifying the user or logging errors, there is no way for an application to handle this error. The handler signature:
void onPersistenceFailed(ClientPersistenceFailedEvent e)
Parameter āeā contains a field exception. It can be an object of one of the following exception classes derived from PersistenceSoftnetException:
- PersistenceIOSoftnetException ā CPL-2 (client persistence level 2) encountered an I/O error and the endpoint switched to CPL-1 (client persistence level 1);
- PersistenceDataFormatSoftnetException ā CPL-2 encountered a data format error when reading stored information about events already received. This error causes the storage to be cleared. The endpoint continues to use CPL-2;