Class AbstractEventSender
java.lang.Object
io.hypersistence.optimizer.core.event.AbstractEventSender
- All Implemented Interfaces:
EventSender
The
AbstractEventSender defines the Event sending flow.- Since:
- 1.0.0
- Author:
- Vlad Mihalcea
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract EventDecoratorGet the associatedEventDecorator.protected abstract EventFilterGet the associatedEventFilter.protected abstract EventHandlerGet the associatedEventHandler.voidThe incomingEventis sent as follows: TheEventis dropped if it was triggered by the Optimizer's own database work, as marked by theInternalWorkScopeThe incomingEventis filtered by the associatedgetEventFilter()The filteredEventis decorated by the associatedgetEventDecorator()The decoratedEventis handled by the associatedgetEventHandler()
-
Constructor Details
-
AbstractEventSender
public AbstractEventSender()
-
-
Method Details
-
getEventFilter
Get the associatedEventFilter.- Returns:
- associated
EventFilter
-
getEventDecorator
Get the associatedEventDecorator.- Returns:
- associated
EventDecorator
-
getEventHandler
Get the associatedEventHandler.- Returns:
- associated
EventHandler
-
send
The incomingEventis sent as follows:- The
Eventis dropped if it was triggered by the Optimizer's own database work, as marked by theInternalWorkScope - The incoming
Eventis filtered by the associatedgetEventFilter() - The filtered
Eventis decorated by the associatedgetEventDecorator() - The decorated
Eventis handled by the associatedgetEventHandler()
- Specified by:
sendin interfaceEventSender- Parameters:
event- incomingEvent
- The
-