Package io.hypersistence.optimizer.core.event
package io.hypersistence.optimizer.core.event
-
ClassDescriptionThe
AbstractEventbase class implements theEventinterface and defines the common methods that can be shared by the entire event hierarchy.TheAbstractEventSenderdefines theEventsending flow.TheChainEventFilterimplements theEventFilterinterface so that it propagates the incoming event to multipleEventFilterobjects that were previously registered.TheChainEventHandlerimplements theEventHandlerinterface so that it propagates the incoming event to multipleEventHandlerobjects that were previously registered.TheDurationAwareEventis an optional interface that can be implemented byEventtypes that carry a duration (e.g.TheEmptyEventDecoratorreturns the incomingEventwithout applying any modification.TheEmptyEventFilteraccepts any incomingEvent.TheEventinterface specifies that all events should have a priority and a description.TheEventpriorityTheEventDecoratorinterface defines the contract for decorating an incomingEvent.TheEventDecoratorinterface defines the contract for filtering an incomingEvent.TheEventHandlerinterface defines the contract for handling an incomingEvent.TheEventSenderinterface defines the contract for sending an incomingEvent.TheInternalWorkScopemarks the current thread while the Optimizer does database work on its own behalf, like persisting the events through the host application'sSessionFactory.TheListEventHandlerimplements theEventHandlerinterface so that it collects all the incomingEventobjects.TheLogEventHandlerimplements theEventHandlerinterface so that it logs all the incomingEventobjects.