Interface UpdateSourceRegistrar

All Superinterfaces:
LogOutputAppendable, NotificationQueue.Dependency
All Known Subinterfaces:
UpdateGraph
All Known Implementing Classes:
BaseUpdateGraph, EventDrivenUpdateGraph, OneShotUpdateCombiner, PeriodicUpdateGraph, PoisonedUpdateGraph, UpdateSourceCombiner

public interface UpdateSourceRegistrar extends NotificationQueue.Dependency
Common interface for classes that can register and de-register update sources.
  • Method Details

    • addSource

      void addSource(@NotNull @NotNull Runnable updateSource)
      Add a source to this registrar.
      Parameters:
      updateSource - The table to add
    • removeSource

      void removeSource(@NotNull @NotNull Runnable updateSource)
      Remove a source from this registrar.
      Parameters:
      updateSource - The table to remove
    • removeSources

      default void removeSources(Collection<Runnable> sourcesToRemove)
      Remove a collection of sources from the list of refreshing sources.
      Parameters:
      sourcesToRemove - The sources to remove from the list of refreshing sources
      ImplNote:
      This will not set the sources as non-refreshing.
    • requestRefresh

      void requestRefresh()
      Request that the next update cycle begin as soon as practicable.