Interface TableLocationProvider.Listener
- All Superinterfaces:
BasicTableDataListener
- All Known Implementing Classes:
TableLocationSubscriptionBuffer
- Enclosing interface:
- TableLocationProvider
ShiftObliviousListener interface for anything that wants to know about new table location keys.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleTableLocationKeyAdded
(@NotNull LiveSupplier<ImmutableTableLocationKey> tableLocationKey) Notify the listener of aLiveSupplier<ImmutableTableLocationKey>
encountered while initiating or maintaining the location subscription.void
handleTableLocationKeyRemoved
(@NotNull LiveSupplier<ImmutableTableLocationKey> tableLocationKey) Notify the listener of aLiveSupplier<ImmutableTableLocationKey>
that has been removed.default void
handleTableLocationKeysUpdate
(@NotNull Collection<LiveSupplier<ImmutableTableLocationKey>> addedKeys, @NotNull Collection<LiveSupplier<ImmutableTableLocationKey>> removedKeys) Notify the listener of collections ofTableLocationKeys
added or removed while initiating or maintaining the location subscription.Methods inherited from interface io.deephaven.engine.table.impl.locations.BasicTableDataListener
handleException
-
Method Details
-
handleTableLocationKeyAdded
void handleTableLocationKeyAdded(@NotNull @NotNull LiveSupplier<ImmutableTableLocationKey> tableLocationKey) Notify the listener of aLiveSupplier<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 tohandleTableLocationKeyAdded(tableLocationKey, null);
by default.- Parameters:
tableLocationKey
- The new table location key.
-
handleTableLocationKeyRemoved
void handleTableLocationKeyRemoved(@NotNull @NotNull LiveSupplier<ImmutableTableLocationKey> tableLocationKey) Notify the listener of aLiveSupplier<ImmutableTableLocationKey>
that has been removed. This removal is not part of any transaction, and is equivalent tohandleTableLocationKeyRemoved(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.
-