public class AutoSave
extends java.lang.Object
AutoSave
...Modifier and Type | Method and Description |
---|---|
AutoSave |
copy() |
int |
getThreshold()
Returns the threshold
|
boolean |
isDryRun() |
void |
markMissing(java.lang.String path) |
void |
markResolved(java.lang.String path) |
boolean |
modified(int num)
Adds
num modified |
boolean |
needsSave()
Returns
true if more than getThreshold() nodes are
modified. |
void |
save(Session session)
saves the changes under the given node and resets the counter
|
void |
setDebugFailEach(int debugFailEach)
Debug settings to allows to produce failures after each
debugFailEach save. |
void |
setDryRun(boolean dryRun) |
void |
setThreshold(int threshold)
Sets the threshold
|
void |
setTracker(ProgressTracker tracker) |
java.lang.String |
toString() |
public AutoSave copy()
public void setTracker(ProgressTracker tracker)
public boolean isDryRun()
public void setDryRun(boolean dryRun)
public void setDebugFailEach(int debugFailEach)
debugFailEach
save.debugFailEach
- cardinal indicating when to failpublic boolean needsSave()
true
if more than getThreshold()
nodes are
modified.true
if threshold reached.public void save(Session session) throws RepositoryException
session
- the session to save. can be null
RepositoryException
- if an error occurs.public int getThreshold()
public void setThreshold(int threshold)
threshold
- the thresholdpublic boolean modified(int num)
num
modifiednum
- number of modifiedtrue
if threshold is reachedpublic void markMissing(java.lang.String path)
public void markResolved(java.lang.String path)
public java.lang.String toString()
toString
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"