Package org.n52.iceland.cache.ctrl
Class ContentCacheControllerImpl
- java.lang.Object
-
- org.n52.iceland.cache.ctrl.AbstractSchedulingContentCacheController
-
- org.n52.iceland.cache.ctrl.ContentCacheControllerImpl
-
- All Implemented Interfaces:
ContentCacheController,Constructable,Destroyable
public class ContentCacheControllerImpl extends AbstractSchedulingContentCacheController implements Constructable
-
-
Constructor Summary
Constructors Constructor Description ContentCacheControllerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()WritableContentCachegetCache()ContentCachePersistenceStrategygetContentCachePersistenceStrategy()voidinit()booleanisUpdateInProgress()protected voidsetCache(WritableContentCache wcc)voidsetCacheFactory(ContentCacheFactory cacheFactory)voidsetCompleteCacheUpdateFactory(CompleteCacheUpdateFactory factory)voidsetPersistenceStrategy(ContentCachePersistenceStrategy persistenceStrategy)voidupdate()Renew the content cache completely.voidupdate(ContentCacheUpdate update)Update the content cache with the specified update.-
Methods inherited from class org.n52.iceland.cache.ctrl.AbstractSchedulingContentCacheController
isInitialized, setCronExpression, setInitialized, setUpdateInterval
-
-
-
-
Method Detail
-
setCacheFactory
@Inject public void setCacheFactory(ContentCacheFactory cacheFactory)
-
setPersistenceStrategy
@Inject public void setPersistenceStrategy(ContentCachePersistenceStrategy persistenceStrategy)
-
setCompleteCacheUpdateFactory
@Inject public void setCompleteCacheUpdateFactory(CompleteCacheUpdateFactory factory)
-
init
public void init()
- Specified by:
initin interfaceConstructable
-
getCache
public WritableContentCache getCache()
- Specified by:
getCachein interfaceContentCacheController- Returns:
- the content cache
-
setCache
protected void setCache(WritableContentCache wcc)
-
destroy
public void destroy()
- Specified by:
destroyin interfaceDestroyable- Overrides:
destroyin classAbstractSchedulingContentCacheController
-
update
public void update() throws OwsExceptionReportDescription copied from interface:ContentCacheControllerRenew the content cache completely.- Specified by:
updatein interfaceContentCacheController- Throws:
OwsExceptionReport- if an error occurs while updating the cache
-
update
public void update(ContentCacheUpdate update) throws OwsExceptionReport
Description copied from interface:ContentCacheControllerUpdate the content cache with the specified update.- Specified by:
updatein interfaceContentCacheController- Parameters:
update- the update- Throws:
OwsExceptionReport- ian error occurs while updating the cache
-
isUpdateInProgress
public boolean isUpdateInProgress()
- Specified by:
isUpdateInProgressin interfaceContentCacheController- Returns:
- Is a cache update currently in progress?
-
getContentCachePersistenceStrategy
public ContentCachePersistenceStrategy getContentCachePersistenceStrategy()
- Specified by:
getContentCachePersistenceStrategyin interfaceContentCacheController- Returns:
- the ContentCachePersistenceStrategy
-
-