Package ca.uhn.fhir.jpa.cache
Class ResourceVersionCache
java.lang.Object
ca.uhn.fhir.jpa.cache.ResourceVersionCache
This maintains a mapping of resource id to resource version. We cache these in order to
detect resources that were modified on remote servers in our cluster.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
getVersionForResourceId
(org.hl7.fhir.instance.model.api.IIdType theResourceId) void
initialize
(ResourceVersionMap theResourceVersionMap) Set
<org.hl7.fhir.instance.model.api.IIdType> keySet()
removeResourceId
(org.hl7.fhir.instance.model.api.IIdType theResourceId) int
size()
-
Constructor Details
-
ResourceVersionCache
public ResourceVersionCache()
-
-
Method Details
-
clear
-
put
- Parameters:
theResourceId
-theVersion
-- Returns:
- previous value
-
getVersionForResourceId
-
removeResourceId
-
initialize
-
size
-
keySet
-