Package org.n52.iceland.cache
Interface ContentCachePersistenceStrategy
-
- All Known Implementing Classes:
AbstractPersistingCachePersistenceStrategy,AsyncCachePersistenceStrategy,ImmediatePersistenceStrategy,NoOpCachePersistenceStrategy
public interface ContentCachePersistenceStrategyTODO JavaDoc
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<WritableContentCache>load()Read the persisted content cache if it present.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.voidremove()Delete any persistent cache instances created by this strategy.
-
-
-
Method Detail
-
load
Optional<WritableContentCache> load()
Read the persisted content cache if it present.- Returns:
- the cache
-
persistOnPartialUpdate
void persistOnPartialUpdate(ContentCache cache)
Persist the specified cache in the event of a partial content update.- Parameters:
cache- the cache
-
persistOnCompleteUpdate
void persistOnCompleteUpdate(ContentCache cache)
Persist the specified cache in the event of a complete content update.- Parameters:
cache- the cache
-
persistOnShutdown
void persistOnShutdown(ContentCache cache)
Persist the specified cache in the event of a service shutdown.- Parameters:
cache- the cache
-
remove
void remove()
Delete any persistent cache instances created by this strategy.
-
-