Class ImmediatePersistenceStrategy
java.lang.Object
org.n52.iceland.cache.ctrl.persistence.AbstractPersistingCachePersistenceStrategy
org.n52.iceland.cache.ctrl.persistence.ImmediatePersistenceStrategy
- All Implemented Interfaces:
ContentCachePersistenceStrategy,Constructable
-
Field Summary
Fields inherited from class org.n52.iceland.cache.ctrl.persistence.AbstractPersistingCachePersistenceStrategy
CACHE_FILE_FOLDER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPersist the specified cache in the event of a complete content update.voidPersist the specified cache in the event of a partial content update.voidpersistOnShutdown(ContentCache cache) Persist the specified cache in the event of a service shutdown.Methods inherited from class org.n52.iceland.cache.ctrl.persistence.AbstractPersistingCachePersistenceStrategy
getBasePath, getCacheFile, getCacheFileFolder, init, isSetCacheFileFolder, load, persistCache, remove, setCacheFileFolder, setCacheFileFolder, setConfigLocationProvider
-
Constructor Details
-
ImmediatePersistenceStrategy
public ImmediatePersistenceStrategy()
-
-
Method Details
-
persistOnPartialUpdate
Description copied from interface:ContentCachePersistenceStrategyPersist the specified cache in the event of a partial content update.- Parameters:
cache- the cache
-
persistOnCompleteUpdate
Description copied from interface:ContentCachePersistenceStrategyPersist the specified cache in the event of a complete content update.- Parameters:
cache- the cache
-
persistOnShutdown
Description copied from interface:ContentCachePersistenceStrategyPersist the specified cache in the event of a service shutdown.- Parameters:
cache- the cache
-