Interface EventMonitor

All Known Subinterfaces:
EventManager
All Known Implementing Classes:
EmptyEventMonitor

@JavaServiceLoadable @Incubating public interface EventMonitor
Contract implemented by services which collect, report, or monitor diagnostic events involving interactions between the session and the database or second-level cache.

For example, this interface is implemented by Hibernate JFR to report events to Java Flight Recorder.

Note that event reporting is different to aggregate metrics, which Hibernate exposes via the Statistics interface.

Since:
7.0
API Note:
This an incubating API, subject to change.