Interface CachingManager

All Known Implementing Classes:
ConnectionManager

public interface CachingManager
This indicates that the implementing manager can both react to changes and can have others subscribe to changes, primarily for cache invalidation.

See CachingManagerFactory for how to use this with BowlManagerFactoryRegistry

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a subscriber that should be notified when the members of this manager are changed.
    void
    clearCache is called to clear any cached data held by this manager.
    void
    Notify this manager that changes in another manager have happened.
  • Method Details

    • addSubscriber

      void addSubscriber(UpdateSubscriber subscriber)
      Adds a subscriber that should be notified when the members of this manager are changed.
      Parameters:
      subscriber - an UpdateSubscriber (not necessarily another CachingManager) that should be notified
    • notifyChanged

      void notifyChanged()
      Notify this manager that changes in another manager have happened.
    • clearCache

      void clearCache()
      clearCache is called to clear any cached data held by this manager. This may have slightly different behavior than notifyChanged, so the APIs are separate.