
Package ca.uhn.fhir.jpa.topic
Class BaseSubscriptionTopicLoader
java.lang.Object
ca.uhn.fhir.cache.BaseResourceCacheSynchronizer
ca.uhn.fhir.jpa.topic.BaseSubscriptionTopicLoader
- All Implemented Interfaces:
IResourceChangeListener
,ISubscriptionTopicLoader
,ca.uhn.fhir.rest.server.util.IResourceRepositoryCache
- Direct Known Subclasses:
R4SubscriptionTopicLoader
,SubscriptionTopicLoader
public abstract class BaseSubscriptionTopicLoader
extends BaseResourceCacheSynchronizer
implements ISubscriptionTopicLoader, IResourceChangeListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ca.uhn.fhir.rest.server.util.ISearchParamRegistry
Fields inherited from class ca.uhn.fhir.cache.BaseResourceCacheSynchronizer
MAX_RETRIES, REFRESH_INTERVAL
-
Constructor Summary
ConstructorsConstructorDescriptionBaseSubscriptionTopicLoader
(ca.uhn.hapi.converters.canonical.VersionCanonicalizer theVersionCanonicalizer, String theResourceName, SubscriptionTopicRegistry theSubscriptionTopicRegistry, ca.uhn.fhir.rest.server.util.ISearchParamRegistry theSearchParamRegistry) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleInit
(List<org.hl7.fhir.instance.model.api.IBaseResource> resourceList) int
syncResourcesIntoCache
(List<org.hl7.fhir.instance.model.api.IBaseResource> resourceList) protected int
updateSubscriptionTopicRegistry
(List<org.hl7.fhir.instance.model.api.IBaseResource> theResourceList) Methods inherited from class ca.uhn.fhir.cache.BaseResourceCacheSynchronizer
acquireSemaphoreForUnitTest, doSyncResourcesForUnitTest, forceRefresh, getSearchParameterMap, handleChange, handleInit, registerListener, requestRefresh, setMaxRetries, shutdown, start, unregisterListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.jpa.cache.IResourceChangeListener
handleChange, handleInit
Methods inherited from interface ca.uhn.fhir.rest.server.util.IResourceRepositoryCache
forceRefresh, requestRefresh
-
Field Details
-
mySearchParamRegistry
-
-
Constructor Details
-
BaseSubscriptionTopicLoader
public BaseSubscriptionTopicLoader(ca.uhn.hapi.converters.canonical.VersionCanonicalizer theVersionCanonicalizer, String theResourceName, SubscriptionTopicRegistry theSubscriptionTopicRegistry, ca.uhn.fhir.rest.server.util.ISearchParamRegistry theSearchParamRegistry) Constructor
-
-
Method Details
-
handleInit
- Specified by:
handleInit
in classBaseResourceCacheSynchronizer
-
syncResourcesIntoCache
public int syncResourcesIntoCache(@Nonnull List<org.hl7.fhir.instance.model.api.IBaseResource> resourceList) - Specified by:
syncResourcesIntoCache
in classBaseResourceCacheSynchronizer
-
updateSubscriptionTopicRegistry
protected int updateSubscriptionTopicRegistry(List<org.hl7.fhir.instance.model.api.IBaseResource> theResourceList)
-