Class NoOpCachePersistenceStrategy
- java.lang.Object
-
- org.n52.iceland.cache.ctrl.persistence.NoOpCachePersistenceStrategy
-
- All Implemented Interfaces:
ContentCachePersistenceStrategy
public class NoOpCachePersistenceStrategy extends Object implements ContentCachePersistenceStrategy
-
-
Constructor Summary
Constructors Constructor Description NoOpCachePersistenceStrategy()
-
Method Summary
All Methods Instance Methods Concrete 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
-
persistOnPartialUpdate
public void persistOnPartialUpdate(ContentCache cache)
Description copied from interface:ContentCachePersistenceStrategyPersist the specified cache in the event of a partial content update.- Specified by:
persistOnPartialUpdatein interfaceContentCachePersistenceStrategy- Parameters:
cache- the cache
-
persistOnCompleteUpdate
public void persistOnCompleteUpdate(ContentCache cache)
Description copied from interface:ContentCachePersistenceStrategyPersist the specified cache in the event of a complete content update.- Specified by:
persistOnCompleteUpdatein interfaceContentCachePersistenceStrategy- Parameters:
cache- the cache
-
persistOnShutdown
public void persistOnShutdown(ContentCache cache)
Description copied from interface:ContentCachePersistenceStrategyPersist the specified cache in the event of a service shutdown.- Specified by:
persistOnShutdownin interfaceContentCachePersistenceStrategy- Parameters:
cache- the cache
-
load
public Optional<WritableContentCache> load()
Description copied from interface:ContentCachePersistenceStrategyRead the persisted content cache if it present.- Specified by:
loadin interfaceContentCachePersistenceStrategy- Returns:
- the cache
-
remove
public void remove()
Description copied from interface:ContentCachePersistenceStrategyDelete any persistent cache instances created by this strategy.- Specified by:
removein interfaceContentCachePersistenceStrategy
-
-