public abstract class AbstractPersistingCachePersistenceStrategy extends Object implements ContentCachePersistenceStrategy
Modifier and Type | Field and Description |
---|---|
private static String |
CACHE_FILE |
private String |
cacheFile |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
AbstractPersistingCachePersistenceStrategy() |
AbstractPersistingCachePersistenceStrategy(File cacheFile) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Delete any persistent cache instances created by this strategy.
|
protected File |
getCacheFile() |
com.google.common.base.Optional<WritableContentCache> |
load()
Read the persisted content cache if it present.
|
protected void |
persistCache(ContentCache cache) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
persistOnCompleteUpdate, persistOnPartialUpdate, persistOnShutdown
private static final org.slf4j.Logger LOGGER
private static final String CACHE_FILE
private final String cacheFile
public AbstractPersistingCachePersistenceStrategy()
public AbstractPersistingCachePersistenceStrategy(File cacheFile)
protected File getCacheFile()
public com.google.common.base.Optional<WritableContentCache> load()
ContentCachePersistenceStrategy
load
in interface ContentCachePersistenceStrategy
protected void persistCache(ContentCache cache)
public void cleanup()
ContentCachePersistenceStrategy
cleanup
in interface ContentCachePersistenceStrategy
cleanup
in interface Cleanupable
Copyright © 2012-2015 52north.org. All Rights Reserved.