diff options
author | Martin Polden <mpolden@mpolden.no> | 2023-06-06 11:33:56 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2023-06-06 11:45:54 +0200 |
commit | da5eb419a5da4dd54b792de2ac54d37b52017236 (patch) | |
tree | bacb697066dcf4ecd0274c0f1fc0d0dc5d87aeca /vespajlib/src | |
parent | 412ee6ba430ecf8be28fcf143733556269952f0e (diff) |
Use primitive type
Diffstat (limited to 'vespajlib/src')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java b/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java index 31f4038c16e..150021091ca 100644 --- a/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java +++ b/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java @@ -37,10 +37,10 @@ public abstract class Maintainer implements Runnable { private final AtomicBoolean shutDown = new AtomicBoolean(); private final boolean ignoreCollision; private final Clock clock; - private final Double successFactorBaseline; + private final double successFactorBaseline; public Maintainer(String name, Duration interval, Clock clock, JobControl jobControl, - JobMetrics jobMetrics, List<String> clusterHostnames, boolean ignoreCollision, Double successFactorBaseline) { + JobMetrics jobMetrics, List<String> clusterHostnames, boolean ignoreCollision, double successFactorBaseline) { this.name = name; this.interval = requireInterval(interval); this.jobControl = Objects.requireNonNull(jobControl); @@ -98,7 +98,7 @@ public abstract class Maintainer implements Runnable { * Called once each time this maintenance job should run. * * @return the degree to which the run was deviated from the successFactorBaseline - a number between -1 (no success), to 0 (complete success). - * Note that this indicates whether something is wrong, so e.g if the call did nothing because it should do + * Note that this indicates whether something is wrong, so e.g. if the call did nothing because it should do * nothing, 0.0 should be returned. */ protected abstract double maintain(); |