Class AsyncCachePersistenceStrategy
- java.lang.Object
-
- org.n52.iceland.cache.ctrl.persistence.AbstractPersistingCachePersistenceStrategy
-
- org.n52.iceland.cache.ctrl.persistence.AsyncCachePersistenceStrategy
-
- All Implemented Interfaces:
ContentCachePersistenceStrategy,Constructable
@Configurable public class AsyncCachePersistenceStrategy extends AbstractPersistingCachePersistenceStrategy
-
-
Field Summary
-
Fields inherited from class org.n52.iceland.cache.ctrl.persistence.AbstractPersistingCachePersistenceStrategy
CACHE_FILE_FOLDER
-
-
Constructor Summary
Constructors Constructor Description AsyncCachePersistenceStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()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.voidsetDelay(int delay)-
Methods inherited from class org.n52.iceland.cache.ctrl.persistence.AbstractPersistingCachePersistenceStrategy
getBasePath, getCacheFile, getCacheFileFolder, isSetCacheFileFolder, load, persistCache, remove, setCacheFileFolder, setCacheFileFolder, setConfigLocationProvider
-
-
-
-
Method Detail
-
init
public void init()
- Specified by:
initin interfaceConstructable- Overrides:
initin classAbstractPersistingCachePersistenceStrategy
-
setDelay
@Setting(value="service.cachePersistenceDelay", required=false) public void setDelay(int delay)
-
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
-
-