Interface IPersistenceListener


public interface IPersistenceListener
It is guaranteed, that in each moment of time, only one thread will call methods on this interface.

It is guaranteed, that events coming from the same storage, will arrive in the same order as they were performed on the storage. However, events from different storages might be mixed together.

Author:
dobisekm
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The event notification thread runs asynchronously and it is processing the events from queue.
  • Method Details

    • handleEvent

      void handleEvent(IPersistenceEvent event)
      The event notification thread runs asynchronously and it is processing the events from queue. The longer the processing by individual listeners take, the bigger delay will occur between the modification itself and the event delivery.

      This method is called without any transaction context (listener has to handle transactions by itself, if it needs any).

      This method is called on behalf of the system user (see ISecurityService.doAsSystemUser(java.security.PrivilegedAction).

      Parameters:
      event - Never null. The event contains only objects, which match the filter under which this listener was registered - even if there were other objects touched during the same revision.