1 | package fr.sii.ogham.spring.common; | |
2 | ||
3 | import java.util.List; | |
4 | ||
5 | public class SendRetryProperties { | |
6 | /** | |
7 | * Set the maximum number of attempts for sending a message. | |
8 | */ | |
9 | private Integer maxAttempts; | |
10 | /** | |
11 | * Set the delay between two attempts for sending a message (in | |
12 | * milliseconds). | |
13 | */ | |
14 | private Long delayBetweenAttempts; | |
15 | ||
16 | /** | |
17 | * Set the initial delay between two executions (in milliseconds). This | |
18 | * delay will be doubled for each try. | |
19 | */ | |
20 | private Long exponentialInitialDelay; | |
21 | ||
22 | /** | |
23 | * Set specific delays (in milliseconds) used for each new execution. If | |
24 | * there are more attempts than the configured delays, the last delay is | |
25 | * used for remaining attempts. | |
26 | */ | |
27 | private List<Long> perExecutionDelays; | |
28 | ||
29 | /** | |
30 | * Retry several times with a fixed delay between each try (no matter how | |
31 | * long the execution of the action lasts) until the maximum attempts is | |
32 | * reached. The next execution date is based on the execution start date of | |
33 | * the first execution.<br /> | |
34 | * <br /> | |
35 | * Set the interval between two executions (in milliseconds). | |
36 | */ | |
37 | private Long executionInterval; | |
38 | ||
39 | public Integer getMaxAttempts() { | |
40 |
1
1. getMaxAttempts : replaced Integer return value with 0 for fr/sii/ogham/spring/common/SendRetryProperties::getMaxAttempts → SURVIVED |
return maxAttempts; |
41 | } | |
42 | ||
43 | public void setMaxAttempts(Integer maxAttempts) { | |
44 | this.maxAttempts = maxAttempts; | |
45 | } | |
46 | ||
47 | public Long getDelayBetweenAttempts() { | |
48 |
1
1. getDelayBetweenAttempts : replaced Long return value with 0L for fr/sii/ogham/spring/common/SendRetryProperties::getDelayBetweenAttempts → SURVIVED |
return delayBetweenAttempts; |
49 | } | |
50 | ||
51 | public void setDelayBetweenAttempts(Long delayBetweenAttempts) { | |
52 | this.delayBetweenAttempts = delayBetweenAttempts; | |
53 | } | |
54 | ||
55 | public Long getExponentialInitialDelay() { | |
56 |
2
1. getExponentialInitialDelay : replaced Long return value with 0L for fr/sii/ogham/spring/common/SendRetryProperties::getExponentialInitialDelay → SURVIVED 2. getExponentialInitialDelay : replaced Long return value with 0L for fr/sii/ogham/spring/common/SendRetryProperties::getExponentialInitialDelay → TIMED_OUT |
return exponentialInitialDelay; |
57 | } | |
58 | ||
59 | public void setExponentialInitialDelay(Long exponentialInitialDelay) { | |
60 | this.exponentialInitialDelay = exponentialInitialDelay; | |
61 | } | |
62 | ||
63 | public List<Long> getPerExecutionDelays() { | |
64 |
1
1. getPerExecutionDelays : replaced return value with Collections.emptyList for fr/sii/ogham/spring/common/SendRetryProperties::getPerExecutionDelays → SURVIVED |
return perExecutionDelays; |
65 | } | |
66 | ||
67 | public void setPerExecutionDelays(List<Long> perExecutionDelays) { | |
68 | this.perExecutionDelays = perExecutionDelays; | |
69 | } | |
70 | ||
71 | public Long getExecutionInterval() { | |
72 |
1
1. getExecutionInterval : replaced Long return value with 0L for fr/sii/ogham/spring/common/SendRetryProperties::getExecutionInterval → SURVIVED |
return executionInterval; |
73 | } | |
74 | ||
75 | public void setExecutionInterval(Long executionInterval) { | |
76 | this.executionInterval = executionInterval; | |
77 | } | |
78 | ||
79 | } | |
Mutations | ||
40 |
1.1 |
|
48 |
1.1 |
|
56 |
1.1 2.2 |
|
64 |
1.1 |
|
72 |
1.1 |