public class NoOpCachePersistenceStrategy extends Object implements ContentCachePersistenceStrategy
Constructor and Description |
---|
NoOpCachePersistenceStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Delete any persistent cache instances created by this strategy.
|
com.google.common.base.Optional<WritableContentCache> |
load()
Read the persisted content cache if it present.
|
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.
|
public void persistOnPartialUpdate(ContentCache cache)
ContentCachePersistenceStrategy
persistOnPartialUpdate
in interface ContentCachePersistenceStrategy
cache
- the cachepublic void persistOnCompleteUpdate(ContentCache cache)
ContentCachePersistenceStrategy
persistOnCompleteUpdate
in interface ContentCachePersistenceStrategy
cache
- the cachepublic void persistOnShutdown(ContentCache cache)
ContentCachePersistenceStrategy
persistOnShutdown
in interface ContentCachePersistenceStrategy
cache
- the cachepublic com.google.common.base.Optional<WritableContentCache> load()
ContentCachePersistenceStrategy
load
in interface ContentCachePersistenceStrategy
public void cleanup()
ContentCachePersistenceStrategy
cleanup
in interface ContentCachePersistenceStrategy
cleanup
in interface Cleanupable
Copyright © 2012-2015 52north.org. All Rights Reserved.