Class PersistentEventHandler

java.lang.Object
io.hypersistence.optimizer.core.event.persistence.PersistentEventHandler
All Implemented Interfaces:
EventHandler

public class PersistentEventHandler extends Object implements EventHandler
The PersistentEventHandler is the EventHandler registered on the Config when the event persistence feature is enabled.

It only handles runtime events, routing them to the RuntimeEventAggregator. Configuration and mapping events are persisted separately, in a single batch, once scanning has finished (see EventPersistenceContext.persistBootstrapEvents(java.lang.String, java.util.List<io.hypersistence.optimizer.core.event.Event>)), so they are skipped here to avoid double writes.

Any failure is swallowed and logged: persisting events must never break the host application.

Since:
2.14.0
Author:
Vlad Mihalcea
  • Constructor Details

  • Method Details