
Package ca.uhn.fhir.jpa.cache
Interface IResourceChangeListener
- All Known Implementing Classes:
SearchParamRegistryImpl
public interface IResourceChangeListener
To be notified of resource changes in the repository, implement this interface and register your instance with
IResourceChangeListenerRegistry
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleChange
(IResourceChangeEvent theResourceChangeEvent) Called by theIResourceChangeListenerRegistry
when matching resource changes are detectedvoid
handleInit
(Collection<org.hl7.fhir.instance.model.api.IIdType> theResourceIds) This method is called withinResourceChangeListenerCacheRefresherImpl.LOCAL_REFRESH_INTERVAL_MS
of a listener registration
-
Method Details
-
handleInit
This method is called withinResourceChangeListenerCacheRefresherImpl.LOCAL_REFRESH_INTERVAL_MS
of a listener registration- Parameters:
theResourceIds
- the ids of all resources that match the search parameters the listener was registered with
-
handleChange
Called by theIResourceChangeListenerRegistry
when matching resource changes are detected
-