001package io.ebean.event;
002
003import io.ebean.DB;
004
005import java.util.Set;
006
007/**
008 * Listen for bulk table events that occur.
009 * <p>
010 * These events can be triggered via
011 * {@link DB#externalModification(String, boolean, boolean, boolean)} or
012 * automatically determined from Ebean bulk update statements.
013 */
014public interface BulkTableEventListener {
015
016  /**
017   * Return the tables that this listener is interested in.
018   */
019  Set<String> registeredTables();
020
021  /**
022   * Process the event.
023   */
024  void process(BulkTableEvent bulkTableEvent);
025
026}