Class ResourceVersionCache

java.lang.Object
ca.uhn.fhir.jpa.cache.ResourceVersionCache

public class ResourceVersionCache extends Object
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 Details

  • Method Details

    • clear

      public void clear()
    • put

      public Long put(org.hl7.fhir.instance.model.api.IIdType theResourceId, Long theVersion)
      Parameters:
      theResourceId -
      theVersion -
      Returns:
      previous value
    • getVersionForResourceId

      public Long getVersionForResourceId(org.hl7.fhir.instance.model.api.IIdType theResourceId)
    • removeResourceId

      public Long removeResourceId(org.hl7.fhir.instance.model.api.IIdType theResourceId)
    • initialize

      public void initialize(ResourceVersionMap theResourceVersionMap)
    • size

      public int size()
    • keySet

      public Set<org.hl7.fhir.instance.model.api.IIdType> keySet()