
Package ca.uhn.fhir.jpa.cache
-
Interface Summary Interface Description IResourceChangeEvent Registered IResourceChangeListener instances are called with this event to provide them with a list of ids of resources that match the search parameters and that changed from the last time they were checked.IResourceChangeListener To be notified of resource changes in the repository, implement this interface and register your instance withIResourceChangeListenerRegistry
.IResourceChangeListenerCache This is a handle to the cache created byIResourceChangeListenerRegistry
when a listener is registered.IResourceChangeListenerCacheRefresher This is an internal service and is not intended to be used outside this package.IResourceChangeListenerRegistry This component holds an in-memory list of all registeredIResourceChangeListener
instances along with their caches and other details needed to maintain those caches.IResourceVersionSvc This interface is used by theIResourceChangeListenerCacheRefresher
to read resources matching the provided search parameter map in the repository and compare them to caches stored in theIResourceChangeListenerRegistry
. -
Class Summary Class Description ResourceChangeEvent An immutable list of resource ids that have been changed, updated, or deleted.ResourceChangeListenerCache ResourceChangeListenerCacheFactory ResourceChangeListenerCacheRefresherImpl This service refreshes theIResourceChangeListenerCache
caches and notifies their listener when those caches change.ResourceChangeListenerCacheRefresherImpl.Job ResourceChangeListenerRegistryImpl This component holds an in-memory list of all registeredIResourceChangeListener
instances along with their caches and other details needed to maintain those caches.ResourceChangeListenerRegistryInterceptor This interceptor watches all resource changes on the server and compares them to theIResourceChangeListenerCache
entries.ResourceChangeResult An immutable object containing the count of resource creates, updates and deletes detected by a cache refresh operation.ResourceVersionCache This maintains a mapping of resource id to resource version.ResourceVersionMap This immutable map holds a copy of current resource versions read from the repository.