/
FileManagerConfig.java
60 lines (54 loc) · 1.54 KB
/
FileManagerConfig.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.smartdevicelink.managers.file;
/**
* <strong>FileManagerConfig</strong> <br>
* <p>
* This is set during SdlManager instantiation. <br>
*
* <li> artworkRetryCount - # of attempts allowed for SdlArtwork to be re-uploaded if they fail </li>
*
* <li> fileRetryCount - # of attempts allowed for SdlFiles to be re-uploaded if they fail</li>
*/
public class FileManagerConfig {
private int artworkRetryCount, fileRetryCount;
/**
* Constructor for FileMangerConfig
* Sets artworkRetryCount and fileRetryCount to a default value of 1
*/
public FileManagerConfig() {
// set default values to 1 retry attempt
this.artworkRetryCount = 1;
this.fileRetryCount = 1;
}
/**
* Setter for Integer artWorkRetryCount
*
* @param artworkRetryCount the number of retry attempts
*/
public void setArtworkRetryCount(int artworkRetryCount) {
this.artworkRetryCount = artworkRetryCount;
}
/**
* Getter for Integer artWorkRetryCount
*
* @return Integer artworkRetryCount
*/
public int getArtworkRetryCount() {
return artworkRetryCount;
}
/**
* Setter for Integer fileRetryCount
*
* @param fileRetryCount the number of retry attempts
*/
public void setFileRetryCount(int fileRetryCount) {
this.fileRetryCount = fileRetryCount;
}
/**
* Getter for Integer fileRetryCount
*
* @return Integer fileRetryCount
*/
public int getFileRetryCount() {
return fileRetryCount;
}
}