Package org.n52.iceland.cache.ctrl
Class AbstractSchedulingContentCacheController
- java.lang.Object
-
- org.n52.iceland.cache.ctrl.AbstractSchedulingContentCacheController
-
- All Implemented Interfaces:
ContentCacheController,Destroyable
- Direct Known Subclasses:
ContentCacheControllerImpl
@Configurable public abstract class AbstractSchedulingContentCacheController extends Object implements ContentCacheController, Destroyable
Abstract class for capabilities cache controller implementations that schedules a complete cache update at a configured interval.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description AbstractSchedulingContentCacheController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()protected booleanisInitialized()voidsetCronExpression(String cronExpression)protected voidsetInitialized(boolean initialized)voidsetUpdateInterval(int interval)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.iceland.cache.ContentCacheController
getCache, getContentCachePersistenceStrategy, isUpdateInProgress, update, update
-
-
-
-
Method Detail
-
setCronExpression
@Setting("service.capabilitiesCacheUpdate") public void setCronExpression(String cronExpression)
-
setUpdateInterval
public void setUpdateInterval(int interval) throws ConfigurationError- Throws:
ConfigurationError
-
destroy
public void destroy()
- Specified by:
destroyin interfaceDestroyable
-
isInitialized
protected boolean isInitialized()
- Returns:
- the initialized
-
setInitialized
protected void setInitialized(boolean initialized)
- Parameters:
initialized- the initialized to set
-
-