public class PersistentEventHandler extends Object implements EventHandler
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.
| Constructor and Description |
|---|
PersistentEventHandler(RuntimeEventAggregator aggregator) |
public PersistentEventHandler(RuntimeEventAggregator aggregator)
public void handle(Event event)
Event.handle in interface EventHandlerevent - incoming EventCopyright © 2026. All rights reserved.