public class NoOpCachePersistenceStrategy extends Object implements ContentCachePersistenceStrategy
| Constructor and Description |
|---|
NoOpCachePersistenceStrategy() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
remove()
Delete any persistent cache instances created by this strategy.
|
public void persistOnPartialUpdate(ContentCache cache)
ContentCachePersistenceStrategypersistOnPartialUpdate in interface ContentCachePersistenceStrategycache - the cachepublic void persistOnCompleteUpdate(ContentCache cache)
ContentCachePersistenceStrategypersistOnCompleteUpdate in interface ContentCachePersistenceStrategycache - the cachepublic void persistOnShutdown(ContentCache cache)
ContentCachePersistenceStrategypersistOnShutdown in interface ContentCachePersistenceStrategycache - the cachepublic Optional<WritableContentCache> load()
ContentCachePersistenceStrategyload in interface ContentCachePersistenceStrategypublic void remove()
ContentCachePersistenceStrategyremove in interface ContentCachePersistenceStrategyCopyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.