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 -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()getCache()voidinit()booleanprotected voidvoidsetCacheFactory(ContentCacheFactory cacheFactory) voidvoidsetPersistenceStrategy(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, setStaticCapabilitiesProvider, setUpdateInterval
-
Constructor Details
-
ContentCacheControllerImpl
public ContentCacheControllerImpl()
-
-
Method Details
-
setCacheFactory
-
setPersistenceStrategy
-
setCompleteCacheUpdateFactory
-
init
public void init()- Specified by:
initin interfaceConstructable
-
getCache
- Specified by:
getCachein interfaceContentCacheController- Returns:
- the content cache
-
setCache
-
destroy
public void destroy()- Specified by:
destroyin interfaceDestroyable- Overrides:
destroyin classAbstractSchedulingContentCacheController
-
update
Description copied from interface:ContentCacheControllerRenew the content cache completely.- Specified by:
updatein interfaceContentCacheController- Throws:
OwsExceptionReport- if an error occurs while updating the cache
-
update
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
- Specified by:
getContentCachePersistenceStrategyin interfaceContentCacheController- Returns:
- the ContentCachePersistenceStrategy
-