Class TenantSpecificFileBasedCache<T>

  • Direct Known Subclasses:
    TenantSpecificPropertyGroupCache, TenantSpecificSearchParameterCache

    public abstract class TenantSpecificFileBasedCache<T>
    extends Object
    This class is a parameterized abstract base class to be used for situations where we need to implement a tenant-specific cache of file-based objects. Examples include: configuration parameters, structure definitions, search parameters, etc.
    • Constructor Detail

      • TenantSpecificFileBasedCache

        public TenantSpecificFileBasedCache()
      • TenantSpecificFileBasedCache

        public TenantSpecificFileBasedCache​(String cacheType)
    • Method Detail

      • clearCache

        public void clearCache()
        Clears the entire cache. This might be useful during testing when you need to clear out the entire cache and re-load.
      • getCacheEntryFilename

        public abstract String getCacheEntryFilename​(String tenantId)
      • getCachedObjectForTenant

        public T getCachedObjectForTenant​(String tenantId)
                                   throws Exception
        Parameters:
        tenantId -
        Returns:
        the cached object for the tenant or null if it could not be found
        Throws:
        Exception