Class AutosaveManager

java.lang.Object
ca.phon.app.autosave.AutosaveManager

public class AutosaveManager extends Object
Handles timer and performs actions for autosave of sessions. Autosave timer interval is read from a user defined property. Default is 10 mins.
  • Field Details

    • AUTOSAVE_INTERVAL_PROP

      public static final String AUTOSAVE_INTERVAL_PROP
      Autosave property
    • AUTOSAVE_PREFIX

      public static final String AUTOSAVE_PREFIX
      See Also:
    • defaultInterval

      public static final int defaultInterval
      Default interval (seconds)
      See Also:
  • Method Details

    • getInstance

      public static AutosaveManager 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.