Class AbstractPersistingCachePersistenceStrategy

java.lang.Object
org.n52.iceland.cache.ctrl.persistence.AbstractPersistingCachePersistenceStrategy
All Implemented Interfaces:
ContentCachePersistenceStrategy, Constructable
Direct Known Subclasses:
AsyncCachePersistenceStrategy, ImmediatePersistenceStrategy

@Configurable public abstract class AbstractPersistingCachePersistenceStrategy extends Object implements ContentCachePersistenceStrategy, Constructable
  • Field Details

  • Constructor Details

    • AbstractPersistingCachePersistenceStrategy

      public AbstractPersistingCachePersistenceStrategy()
  • Method Details

    • setConfigLocationProvider

      @Inject public void setConfigLocationProvider(ConfigLocationProvider configLocationProvider)
    • init

      public void init()
      Specified by:
      init in interface Constructable
    • getCacheFile

      public Path getCacheFile()
    • load

      Description copied from interface: ContentCachePersistenceStrategy
      Read the persisted content cache if it present.
      Specified by:
      load in interface ContentCachePersistenceStrategy
      Returns:
      the cache
    • persistCache

      protected void persistCache(ContentCache cache)
    • getBasePath

      protected Path getBasePath()
    • remove

      public void remove()
      Description copied from interface: ContentCachePersistenceStrategy
      Delete any persistent cache instances created by this strategy.
      Specified by:
      remove in interface ContentCachePersistenceStrategy
    • getCacheFileFolder

      protected Path getCacheFileFolder()
      Returns:
      the cacheFileFolder
    • setCacheFileFolder

      @Setting(value="service.cacheFileFolder", required=false) public void setCacheFileFolder(File cacheFileFolder)
      Parameters:
      cacheFileFolder - the cacheFileFolder to set
    • setCacheFileFolder

      public void setCacheFileFolder(Path cacheFileFolder)
      Parameters:
      cacheFileFolder - the cacheFileFolder to set
    • isSetCacheFileFolder

      protected boolean isSetCacheFileFolder()