Package com.darkcollective.relix.events
Interface QueryEventListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Receives
QueryEvents as the optimizer and planner make decisions.
This is a pure observer: an implementation must not alter the pipeline's
behaviour, only react to it (collect for a report, print a trace, push a UI
update). The default NONE ignores everything, so emitting events is
free until a consumer opts in.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QueryEventListenerA listener that ignores every event. -
Method Summary
Modifier and TypeMethodDescriptionvoidonEvent(QueryEvent event) Called once per observed decision.
-
Field Details
-
NONE
A listener that ignores every event.
-
-
Method Details
-
onEvent
Called once per observed decision. Implementations should be fast and must not throw — an emitter is not expected to guard against listener failures.- Parameters:
event- the event; never null
-