Package io.micronaut.data.jdbc.notification
@NullMarked
package io.micronaut.data.jdbc.notification
JDBC implementations of the database-neutral change-notification contracts.
Set micronaut.data.jdbc.notifications.enabled=false to disable automatic registration
and startup datasource/provider validation for all JDBC listeners. Listener beans remain available.
Deferred entity loading occurs before the listener's transaction advice.
@Transactional applies to listener execution, not the preceding load. With @Async,
loading occurs on the calling thread before listener execution is scheduled on the async executor.
Retry advice can retry entity loading and synchronous listener failures. A successful load is
reused on subsequent retry attempts. Since listener methods return void, failures during
async listener execution cannot reach retry advice.
-
ClassDescriptionMaterializes provider-deferred entity state before change-listener execution.An unhandled failure while resolving a change listener, loading its entity, or invoking it.Handles change-listener failures after configured retry and recovery advice completes.Executable
@ChangeListenermethod collected for notification registration.Collects methods annotated withChangeListenerand groups them by datasource.Database-specific implementation of JDBC change notifications.Queues one listener's callbacks for sequential delivery on a dedicated daemon thread.Default change-event implementation used by providers when entity state is already available or intentionally unavailable.Internal change event whose entity state is materialized by listener AOP advice immediately before listener invocation.