Module org.jooq
Package org.jooq

Interface RecordListenerProvider

All Known Implementing Classes:
DefaultRecordListenerProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RecordListenerProvider
A provider for RecordListener instances.

In order to facilitate the lifecycle management of RecordListener instances that are provided to a jOOQ Configuration, clients can implement this API. To jOOQ, it is thus irrelevant, if execute listeners are stateful or stateless, local to a single record or record manipulation, or global to an application.

Author:
Lukas Eder
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Provide a RecordListener instance.
  • Method Details

    • provide

      @NotNull @NotNull RecordListener provide()
      Provide a RecordListener instance.

      Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.

      A RecordListener shall be provided exactly once per UpdatableRecord manipulation, i.e. per RecordContext.

      Returns:
      An RecordListener instance.
      See Also: