
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 TypeMethodDescriptionvoidhandleChange(IResourceChangeEvent theResourceChangeEvent) Called by theIResourceChangeListenerRegistrywhen matching resource changes are detectedvoidhandleInit(Collection<org.hl7.fhir.instance.model.api.IIdType> theResourceIds) This method is called withinResourceChangeListenerCacheRefresherImpl.LOCAL_REFRESH_INTERVAL_MSof a listener registration
-
Method Details
-
handleInit
This method is called withinResourceChangeListenerCacheRefresherImpl.LOCAL_REFRESH_INTERVAL_MSof a listener registration- Parameters:
theResourceIds- the ids of all resources that match the search parameters the listener was registered with
-
handleChange
Called by theIResourceChangeListenerRegistrywhen matching resource changes are detected
-