Package org.pentaho.di.core.bowl
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 TypeMethodDescriptionvoidaddSubscriber(UpdateSubscriber subscriber) Adds a subscriber that should be notified when the members of this manager are changed.voidclearCache is called to clear any cached data held by this manager.voidNotify this manager that changes in another manager have happened.
-
Method Details
-
addSubscriber
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.
-