Package ca.uhn.fhir.jpa.cache
Interface IResourceChangeListenerCacheRefresher
- All Known Implementing Classes:
ResourceChangeListenerCacheRefresherImpl
public interface IResourceChangeListenerCacheRefresher
This is an internal service and is not intended to be used outside this package. Implementers should only directly
call the
IResourceChangeListenerRegistry
.
This service refreshes a ResourceChangeListenerCache
cache and notifies its listener when
the cache changes.-
Method Summary
Modifier and TypeMethodDescriptionRefresh the cache in this entry and notify the entry's listener if the cache changedIf the current time is past the next refresh time of the registered listener, then check if any of its resources have changed and notify the listener accordinglyvoid
shutdown()
void
start()
-
Method Details
-
refreshExpiredCachesAndNotifyListeners
If the current time is past the next refresh time of the registered listener, then check if any of its resources have changed and notify the listener accordingly- Returns:
- an aggregate of all changes sent to all listeners
-
refreshCacheAndNotifyListener
Refresh the cache in this entry and notify the entry's listener if the cache changed- Parameters:
theEntry
- theIResourceChangeListenerCache
with the cache and the listener- Returns:
- the number of resources that have been created, updated and deleted since the last time the cache was refreshed
-
start
-
shutdown
-