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 -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()voidPersist 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.voidsetDelay(int delay) Methods inherited from class org.n52.iceland.cache.ctrl.persistence.AbstractPersistingCachePersistenceStrategy
getBasePath, getCacheFile, getCacheFileFolder, isSetCacheFileFolder, load, persistCache, remove, setCacheFileFolder, setCacheFileFolder, setConfigLocationProvider
-
Constructor Details
-
AsyncCachePersistenceStrategy
public AsyncCachePersistenceStrategy()
-
-
Method Details
-
init
public void init()- Specified by:
initin interfaceConstructable- Overrides:
initin classAbstractPersistingCachePersistenceStrategy
-
setDelay
-
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
-