*/
public synchronized static boolean incrementFileRetries(String filename,
int maxRetries,
int secsBetweenRetries) {
FileRetryRecord fileRetryRecord = null;
Object fileRetryRecordObj = retryRegistry.get(filename);
// If the first retry, add a record.
if (fileRetryRecordObj == null) {
fileRetryRecord = new FileRetryRecord();
fileRetryRecord.setMaxRetries(maxRetries);
fileRetryRecord.setSecsBetweenRetries(secsBetweenRetries);
retryRegistry.put(filename,fileRetryRecord);
}
else {
fileRetryRecord = (FileRetryRecord)fileRetryRecordObj;
}
return fileRetryRecord.incrementRetries();
}