java.lang.Object
dk.cloudcreate.essentials.components.foundation.postgresql.MultiTableChangeListener<T>
All Implemented Interfaces:
Closeable, AutoCloseable

public class MultiTableChangeListener<T extends TableChangeNotification> extends Object implements Closeable
Variant of ListenNotify.listen(Jdbi, String, Duration) that allows you to listen for notifications from multiple tables using a single polling thread
  • Constructor Details

    • MultiTableChangeListener

      public MultiTableChangeListener(org.jdbi.v3.core.Jdbi jdbi, Duration pollingInterval, com.fasterxml.jackson.databind.ObjectMapper objectMapper, dk.cloudcreate.essentials.reactive.EventBus eventBus)
  • Method Details