summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2020-12-15 13:43:31 +0100
committergjoranv <gv@verizonmedia.com>2020-12-15 15:06:19 +0100
commit79e8e0a9632002c6c7a3bb687820b896019c4ded (patch)
treed11ef3f9b0b5a0fa73f7dc5afc63137589a22bee
parent08d1933bd7a34d0fae3c4cf0dcd8ba28084d83d1 (diff)
Add constant for the deconstruct delay in RECONFIG mode.
-rw-r--r--container-disc/src/main/java/com/yahoo/container/jdisc/component/Deconstructor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/container-disc/src/main/java/com/yahoo/container/jdisc/component/Deconstructor.java b/container-disc/src/main/java/com/yahoo/container/jdisc/component/Deconstructor.java
index 47e36809a48..65a02d128fc 100644
--- a/container-disc/src/main/java/com/yahoo/container/jdisc/component/Deconstructor.java
+++ b/container-disc/src/main/java/com/yahoo/container/jdisc/component/Deconstructor.java
@@ -39,6 +39,7 @@ public class Deconstructor implements ComponentDeconstructor {
private static final Logger log = Logger.getLogger(Deconstructor.class.getName());
+ private static final Duration RECONFIG_DECONSTRUCT_DELAY = Duration.ofSeconds(60);
private static final Duration SHUTDOWN_DECONSTRUCT_TIMEOUT = Duration.ofMinutes(10);
public enum Mode {
@@ -55,7 +56,7 @@ public class Deconstructor implements ComponentDeconstructor {
private final Duration delay;
public Deconstructor(Mode mode) {
- this(mode, (mode == Mode.RECONFIG) ? Duration.ofSeconds(60) : Duration.ZERO);
+ this(mode, (mode == Mode.RECONFIG) ? RECONFIG_DECONSTRUCT_DELAY : Duration.ZERO);
}
// For testing only