@Configurable public abstract class AbstractSchedulingContentCacheController extends Object implements ContentCacheController
Modifier and Type | Class and Description |
---|---|
private class |
AbstractSchedulingContentCacheController.UpdateTimerTask |
Modifier and Type | Field and Description |
---|---|
private TimerTask |
current |
private boolean |
initialized |
private static org.slf4j.Logger |
LOGGER |
private Timer |
timer |
private long |
updateInterval |
Constructor and Description |
---|
AbstractSchedulingContentCacheController() |
Modifier and Type | Method and Description |
---|---|
private void |
cancelCurrent() |
private void |
cancelTimer() |
void |
cleanup() |
protected void |
finalize() |
private long |
getUpdateInterval() |
protected boolean |
isInitialized() |
private void |
reschedule()
Stops the current task, if available and starts a new
TimerTask . |
private void |
schedule()
Starts a new timer task
|
protected void |
setInitialized(boolean initialized) |
void |
setUpdateInterval(int interval) |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCache, getContentCachePersistenceStrategy, isUpdateInProgress, update, update
private static final org.slf4j.Logger LOGGER
private boolean initialized
private long updateInterval
private final Timer timer
private TimerTask current
public AbstractSchedulingContentCacheController()
private void schedule()
@Setting(value="service.capabilitiesCacheUpdateInterval") public void setUpdateInterval(int interval) throws ConfigurationException
ConfigurationException
private long getUpdateInterval()
private void reschedule()
TimerTask
.schedule()
private void cancelCurrent()
private void cancelTimer()
public void cleanup()
cleanup
in interface Cleanupable
protected void finalize() throws Throwable
protected boolean isInitialized()
protected void setInitialized(boolean initialized)
initialized
- the initialized to setCopyright © 2012-2015 52north.org. All Rights Reserved.