Class ImmediatePersistenceStrategy
- java.lang.Object
-
- org.n52.iceland.cache.ctrl.persistence.AbstractPersistingCachePersistenceStrategy
-
- org.n52.iceland.cache.ctrl.persistence.ImmediatePersistenceStrategy
-
- All Implemented Interfaces:
ContentCachePersistenceStrategy,Constructable
public class ImmediatePersistenceStrategy extends AbstractPersistingCachePersistenceStrategy
-
-
Field Summary
-
Fields inherited from class org.n52.iceland.cache.ctrl.persistence.AbstractPersistingCachePersistenceStrategy
CACHE_FILE_FOLDER
-
-
Constructor Summary
Constructors Constructor Description ImmediatePersistenceStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpersistOnCompleteUpdate(ContentCache cache)Persist the specified cache in the event of a complete content update.voidpersistOnPartialUpdate(ContentCache cache)Persist 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
-
-
-
-
Method Detail
-
persistOnPartialUpdate
public void persistOnPartialUpdate(ContentCache cache)
Description copied from interface:ContentCachePersistenceStrategyPersist the specified cache in the event of a partial content update.- Parameters:
cache- the cache
-
persistOnCompleteUpdate
public void persistOnCompleteUpdate(ContentCache cache)
Description copied from interface:ContentCachePersistenceStrategyPersist the specified cache in the event of a complete content update.- Parameters:
cache- the cache
-
persistOnShutdown
public void persistOnShutdown(ContentCache cache)
Description copied from interface:ContentCachePersistenceStrategyPersist the specified cache in the event of a service shutdown.- Parameters:
cache- the cache
-
-