public class CloudStoreUpdaterTimer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_KEY_TIMER_PERIOD
Configuration property key controlling how many milliseconds the timer waits between
invocations of
CloudStoreUpdaterCore.createUpdaterDirIfUpdateNeeded(). |
static long |
DEFAULT_TIMER_PERIOD
Default value for
CONFIG_KEY_TIMER_PERIOD (15 minutes in milliseconds). |
| Constructor and Description |
|---|
CloudStoreUpdaterTimer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancelTimer() |
protected void |
cancelTimerTask() |
protected long |
getTimerPeriod() |
protected void |
run() |
protected void |
schedule(boolean onStart) |
void |
start() |
void |
stop() |
public static final long DEFAULT_TIMER_PERIOD
CONFIG_KEY_TIMER_PERIOD (15 minutes in milliseconds).public static final String CONFIG_KEY_TIMER_PERIOD
CloudStoreUpdaterCore.createUpdaterDirIfUpdateNeeded().
Important: Setting this to 5 minutes does not necessarily mean that an update will be done
5 minutes after the new version was released. There's a local cache and a new release is only detected
after this cache expired -- see CloudStoreUpdaterCore.CONFIG_KEY_REMOTE_VERSION_CACHE_VALIDITY_PERIOD.
The configuration can be overridden by a system property - see Config.SYSTEM_PROPERTY_PREFIX.
DEFAULT_TIMER_PERIOD,
Constant Field Valuespublic CloudStoreUpdaterTimer()
public void start()
public void stop()
protected void schedule(boolean onStart)
protected void cancelTimerTask()
protected void cancelTimer()
protected long getTimerPeriod()
protected void run()
Copyright © 2013–2017. All rights reserved.