Interface TableLocationProvider.Listener

All Superinterfaces:
BasicTableDataListener
All Known Implementing Classes:
TableLocationSubscriptionBuffer
Enclosing interface:
TableLocationProvider

public static interface TableLocationProvider.Listener extends BasicTableDataListener
ShiftObliviousListener interface for anything that wants to know about new table location keys.
  • Method Details

    • handleTableLocationKeyAdded

      void handleTableLocationKeyAdded(@NotNull @NotNull LiveSupplier<ImmutableTableLocationKey> tableLocationKey)
      Notify the listener of a LiveSupplier<ImmutableTableLocationKey> encountered while initiating or maintaining the location subscription. This should occur at most once per location, but the order of delivery is not guaranteed. This addition is not part of any transaction, and is equivalent to handleTableLocationKeyAdded(tableLocationKey, null); by default.
      Parameters:
      tableLocationKey - The new table location key.
    • handleTableLocationKeyRemoved

      void handleTableLocationKeyRemoved(@NotNull @NotNull LiveSupplier<ImmutableTableLocationKey> tableLocationKey)
      Notify the listener of a LiveSupplier<ImmutableTableLocationKey> that has been removed. This removal is not part of any transaction, and is equivalent to handleTableLocationKeyRemoved(tableLocationKey, null); by default.
      Parameters:
      tableLocationKey - The table location key that was removed.
    • handleTableLocationKeysUpdate

      default void handleTableLocationKeysUpdate(@NotNull @NotNull Collection<LiveSupplier<ImmutableTableLocationKey>> addedKeys, @NotNull @NotNull Collection<LiveSupplier<ImmutableTableLocationKey>> removedKeys)

      Notify the listener of collections of TableLocationKeys added or removed while initiating or maintaining the location subscription. Addition or removal should occur at most once per location, but the order of delivery is not guaranteed.

      Parameters:
      addedKeys - Collection of table location keys that were added.
      removedKeys - Collection of table location keys that were removed.