1e99c3c7da050c488f0e60d4b4a1c3e46ead65aa
java/com.sap.sailing.landscape/src/com/sap/sailing/landscape/impl/ArchiveCandidateMonitoringBackgroundTask.java
| ... | ... | @@ -101,7 +101,6 @@ public class ArchiveCandidateMonitoringBackgroundTask implements Runnable { |
| 101 | 101 | private final static Duration LONG_TIMEOUT = Duration.ONE_DAY.times(3); |
| 102 | 102 | private final static double MAXIMUM_ONE_MINUTE_SYSTEM_LOAD_AVERAGE = 2.0; |
| 103 | 103 | private final static int MAXIMUM_THREAD_POOL_QUEUE_SIZE = 10; |
| 104 | - private final static Optional<Duration> TIMEOUT_FIRST_CONTACT = Optional.of(Landscape.WAIT_FOR_PROCESS_TIMEOUT.get().plus(Landscape.WAIT_FOR_HOST_TIMEOUT.get())); |
|
| 105 | 104 | private final static Duration SERVER_COMPARISON_TIMEOUT = Duration.ONE_MINUTE.times(10); // good for two or three attempts, usually |
| 106 | 105 | private final static Duration DELAY_BETWEEN_COMPARISON_CHECKS = Duration.ONE_MINUTE; |
| 107 | 106 | |
| ... | ... | @@ -193,7 +192,7 @@ public class ArchiveCandidateMonitoringBackgroundTask implements Runnable { |
| 193 | 192 | private static final long serialVersionUID = -4265303532881568290L; |
| 194 | 193 | |
| 195 | 194 | private IsReady() { |
| 196 | - super("is ready", TIMEOUT_FIRST_CONTACT.get(), DELAY_BETWEEN_CHECKS); |
|
| 195 | + super("is ready", LONG_TIMEOUT, DELAY_BETWEEN_CHECKS); |
|
| 197 | 196 | } |
| 198 | 197 | |
| 199 | 198 | @Override |