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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Pathprotected Pathvoidinit()protected booleanload()Read the persisted content cache if it present.protected voidpersistCache(ContentCache cache) voidremove()Delete any persistent cache instances created by this strategy.voidsetCacheFileFolder(File cacheFileFolder) voidsetCacheFileFolder(Path cacheFileFolder) voidsetConfigLocationProvider(ConfigLocationProvider configLocationProvider) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.iceland.cache.ContentCachePersistenceStrategy
persistOnCompleteUpdate, persistOnPartialUpdate, persistOnShutdown
-
Field Details
-
CACHE_FILE_FOLDER
- See Also:
-
-
Constructor Details
-
AbstractPersistingCachePersistenceStrategy
public AbstractPersistingCachePersistenceStrategy()
-
-
Method Details
-
setConfigLocationProvider
-
init
public void init()- Specified by:
initin interfaceConstructable
-
getCacheFile
-
load
Description copied from interface:ContentCachePersistenceStrategyRead the persisted content cache if it present.- Specified by:
loadin interfaceContentCachePersistenceStrategy- Returns:
- the cache
-
persistCache
-
getBasePath
-
remove
public void remove()Description copied from interface:ContentCachePersistenceStrategyDelete any persistent cache instances created by this strategy.- Specified by:
removein interfaceContentCachePersistenceStrategy
-
getCacheFileFolder
- Returns:
- the cacheFileFolder
-
setCacheFileFolder
@Setting(value="service.cacheFileFolder", required=false) public void setCacheFileFolder(File cacheFileFolder) - Parameters:
cacheFileFolder- the cacheFileFolder to set
-
setCacheFileFolder
- Parameters:
cacheFileFolder- the cacheFileFolder to set
-
isSetCacheFileFolder
protected boolean isSetCacheFileFolder()
-