From 149879be30e8b103b07491db63db4278cb8b8514 Mon Sep 17 00:00:00 2001 From: Richard Fearn Date: Fri, 2 Sep 2022 18:37:03 +0100 Subject: [PATCH] Update LDConfig.Builder startWait Javadoc now that it takes a Duration (#274) --- src/main/java/com/launchdarkly/sdk/server/LDConfig.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/launchdarkly/sdk/server/LDConfig.java b/src/main/java/com/launchdarkly/sdk/server/LDConfig.java index aa26e93fb..17a003f97 100644 --- a/src/main/java/com/launchdarkly/sdk/server/LDConfig.java +++ b/src/main/java/com/launchdarkly/sdk/server/LDConfig.java @@ -21,7 +21,10 @@ * This class exposes advanced configuration options for the {@link LDClient}. Instances of this class must be constructed with a {@link com.launchdarkly.sdk.server.LDConfig.Builder}. */ public final class LDConfig { - static final Duration DEFAULT_START_WAIT = Duration.ofSeconds(5); + /** + * The default value for {@link Builder#startWait(Duration)}: 5 seconds. + */ + public static final Duration DEFAULT_START_WAIT = Duration.ofSeconds(5); protected static final LDConfig DEFAULT = new Builder().build(); @@ -286,7 +289,8 @@ public Builder serviceEndpoints(ServiceEndpointsBuilder serviceEndpointsBuilder) /** * Set how long the constructor will block awaiting a successful connection to LaunchDarkly. * Setting this to a zero or negative duration will not block and cause the constructor to return immediately. - * Default value: 5000 + *

+ * The default is {@link #DEFAULT_START_WAIT}. * * @param startWait maximum time to wait; null to use the default * @return the builder