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