bug5655: a first untested warning-free version of REST methods for /createapplicationreplicaset and /movetoarchiveserver

This commit is contained in:
Axel Uhl
2021-12-16 14:44:58 +01:00
parent daa8e3ad6e
commit 4baf5dee80
17 changed files with 128 additions and 144 deletions
@@ -28,6 +28,14 @@ public interface Duration extends Serializable, Comparable<Duration> {
static final Duration ONE_YEAR = ONE_DAY.times(365); // well, leap years have 366 days, but this should be close enough...
static final Duration FOREVER = new MillisecondsDurationImpl(Long.MAX_VALUE);
static Duration ofMillis(long millis) {
return new MillisecondsDurationImpl(millis);
}
static Duration ofSeconds(double seconds) {
return new SecondsDurationImpl(seconds);
}
long asMillis();
double asSeconds();