public class ImmediatePersistenceStrategy extends AbstractPersistingCachePersistenceStrategy
Constructor and Description |
---|
ImmediatePersistenceStrategy() |
ImmediatePersistenceStrategy(File cacheFile) |
Modifier and Type | Method and Description |
---|---|
void |
persistOnCompleteUpdate(ContentCache cache)
Persist the specified cache in the event of a complete content update.
|
void |
persistOnPartialUpdate(ContentCache cache)
Persist the specified cache in the event of a partial content update.
|
void |
persistOnShutdown(ContentCache cache)
Persist the specified cache in the event of a service shutdown.
|
cleanup, getCacheFile, load, persistCache
public ImmediatePersistenceStrategy()
public ImmediatePersistenceStrategy(File cacheFile)
public void persistOnPartialUpdate(ContentCache cache)
ContentCachePersistenceStrategy
cache
- the cachepublic void persistOnCompleteUpdate(ContentCache cache)
ContentCachePersistenceStrategy
cache
- the cachepublic void persistOnShutdown(ContentCache cache)
ContentCachePersistenceStrategy
cache
- the cacheCopyright © 2012-2015 52north.org. All Rights Reserved.