Interface PersistenceEventManager

  • All Known Implementing Classes:
    TransactionalPersistenceEventManager

    public interface PersistenceEventManager
    Main entry point for integration default persistence layer with other systems. Responsible for collecting InstanceView that are then send through the EventEmitter.
    • Method Detail

      • create

        void create​(InstanceView<?> item)
        Invoked by persistence layer when new instance is created
        Parameters:
        item - view of the actual instance
      • update

        void update​(InstanceView<?> item)
        Invoked by persistence layer when instance is updated
        Parameters:
        item - view of the actual instance
      • delete

        void delete​(InstanceView<?> item)
        Invoked by persistence layer when instance is deleted
        Parameters:
        item - view of the actual instance
      • close

        void close()
        Requests to close the manager and underlying resources e.g. emitter
      • isActive

        boolean isActive()
        Determines if event manager is actually active (there is emitter found)
      • setEventEmitter

        default void setEventEmitter​(EventEmitter eventEmitter)
        Override programmatically the emitter found
        Parameters:
        eventEmitter -