Class AutoSave


  • public class AutoSave
    extends Object
    AutoSave...
    • Constructor Detail

      • AutoSave

        public AutoSave()
      • AutoSave

        public AutoSave​(int threshold)
    • Method Detail

      • isDryRun

        public boolean isDryRun()
      • setDryRun

        public void setDryRun​(boolean dryRun)
      • setDebugFailEach

        public void setDebugFailEach​(int debugFailEach)
        Debug settings to allows to produce failures after each debugFailEach save.
        Parameters:
        debugFailEach - cardinal indicating when to fail
      • needsSave

        public boolean needsSave()
        Returns true if more than getThreshold() nodes are modified.
        Returns:
        true if threshold reached.
      • getThreshold

        public int getThreshold()
        Returns the threshold
        Returns:
        the threshold
      • setThreshold

        public void setThreshold​(int threshold)
        Sets the threshold
        Parameters:
        threshold - the threshold
      • modified

        public boolean modified​(int num)
        Adds num modified
        Parameters:
        num - number of modified
        Returns:
        true if threshold is reached