Class FHIRPersistenceJDBCTenantCache


  • public class FHIRPersistenceJDBCTenantCache
    extends Object
    Manages separate caches for each tenant.
    • Constructor Detail

      • FHIRPersistenceJDBCTenantCache

        public FHIRPersistenceJDBCTenantCache()
    • Method Detail

      • getCacheForTenantAndDatasource

        public FHIRPersistenceJDBCCache getCacheForTenantAndDatasource()
        Get the FHIRPersistenceJDBCCache cache associated with the tenant and datasource defined in the current request context.
        Returns:
        the cache instance for the tenant/datasource
        Throws:
        IllegalStateException - if the configuration failed to load
      • createCache

        protected FHIRPersistenceJDBCCache createCache​(String cacheKey)
        Create the individual caches we need and wrap them in a container we use to hold them in the tenant map
        Parameters:
        sharedExternalSystemNameCacheSize -
        sharedExternalReferenceValuesCacheSize -
        Returns:
      • getCacheKeyForTenantDatasource

        protected String getCacheKeyForTenantDatasource()
        Derive a key representing the current request tenant and datasource
        Returns: