-
Notifications
You must be signed in to change notification settings - Fork 0
/
DataProvidersProperties.java
94 lines (75 loc) · 3.18 KB
/
DataProvidersProperties.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
package marksto.data.config.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.convert.DurationUnit;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
/**
* @author marksto
* @since 17.09.2019
*/
@ConfigurationProperties("app.data.providers")
public class DataProvidersProperties {
/**
* The configuration of a "retry with exponential backoff" strategy for the
* <em>remote Data Source metadata retrieval</em> operation.<br/>
* The defaults are: {@code 3} retries with an exponential delay
* of {@code 500} milliseconds.
*/
private long retrieveMetadataRetriesNum = 3;
@DurationUnit(ChronoUnit.MILLIS)
private Duration retrieveMetadata1stBackoff = Duration.ofMillis(500);
/**
* The configuration of a "retry with exponential backoff" strategy for the
* <em>remote Data Source's Data Structure retrieval</em> operation.<br/>
* The defaults are: {@code 3} retries with an exponential delay
* of {@code 500} milliseconds.
*/
private long retrieveDataStructureRetriesNum = 3;
@DurationUnit(ChronoUnit.MILLIS)
private Duration retrieveDataStructure1stBackoff = Duration.ofMillis(500);
/**
* The configuration of a "retry with exponential backoff" strategy for the
* <em>remote Data Source data retrieval</em> operation.<br/>
* The defaults are: {@code 3} retries with an exponential delay
* of {@code 500} milliseconds.
*/
private long retrieveDataRetriesNum = 3;
@DurationUnit(ChronoUnit.MILLIS)
private Duration retrieveData1stBackoff = Duration.ofMillis(500);
public long getRetrieveMetadataRetriesNum() {
return retrieveMetadataRetriesNum;
}
public void setRetrieveMetadataRetriesNum(long retrieveMetadataRetriesNum) {
this.retrieveMetadataRetriesNum = retrieveMetadataRetriesNum;
}
public Duration getRetrieveMetadata1stBackoff() {
return retrieveMetadata1stBackoff;
}
public void setRetrieveMetadata1stBackoff(Duration retrieveMetadata1stBackoff) {
this.retrieveMetadata1stBackoff = retrieveMetadata1stBackoff;
}
public long getRetrieveDataStructureRetriesNum() {
return retrieveDataStructureRetriesNum;
}
public void setRetrieveDataStructureRetriesNum(long retrieveDataStructureRetriesNum) {
this.retrieveDataStructureRetriesNum = retrieveDataStructureRetriesNum;
}
public Duration getRetrieveDataStructure1stBackoff() {
return retrieveDataStructure1stBackoff;
}
public void setRetrieveDataStructure1stBackoff(Duration retrieveDataStructure1stBackoff) {
this.retrieveDataStructure1stBackoff = retrieveDataStructure1stBackoff;
}
public long getRetrieveDataRetriesNum() {
return retrieveDataRetriesNum;
}
public void setRetrieveDataRetriesNum(long retrieveDataRetriesNum) {
this.retrieveDataRetriesNum = retrieveDataRetriesNum;
}
public Duration getRetrieveData1stBackoff() {
return retrieveData1stBackoff;
}
public void setRetrieveData1stBackoff(Duration retrieveData1stBackoff) {
this.retrieveData1stBackoff = retrieveData1stBackoff;
}
}