Package ca.phon.app.autosave
Class AutosaveManager
java.lang.Object
ca.phon.app.autosave.AutosaveManager
Handles timer and performs actions for autosave of sessions.
Autosave timer interval is read from a user defined property.
Default is 10 mins.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AutosaveManager
void
setInterval
(int sec) Set the timer interval in seconds.void
setInterval
(long ms) Set the timer interval in miliseconds.
-
Field Details
-
AUTOSAVE_INTERVAL_PROP
Autosave property -
AUTOSAVE_PREFIX
- See Also:
-
defaultInterval
public static final int defaultIntervalDefault interval (seconds)- See Also:
-
-
Method Details
-
getInstance
-
setInterval
public void setInterval(int sec) Set the timer interval in seconds. -
setInterval
public void setInterval(long ms) Set the timer interval in miliseconds. Starts the timer if not started.- Parameters:
ms
- the interval for performing the autosave action. Setting value to 0 zero will stop the timer.
-