Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 149879b

Browse files
authored
Update LDConfig.Builder startWait Javadoc now that it takes a Duration (#274)
1 parent 9c5fa25 commit 149879b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/java/com/launchdarkly/sdk/server/LDConfig.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
* 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}.
2222
*/
2323
public final class LDConfig {
24-
static final Duration DEFAULT_START_WAIT = Duration.ofSeconds(5);
24+
/**
25+
* The default value for {@link Builder#startWait(Duration)}: 5 seconds.
26+
*/
27+
public static final Duration DEFAULT_START_WAIT = Duration.ofSeconds(5);
2528

2629
protected static final LDConfig DEFAULT = new Builder().build();
2730

@@ -286,7 +289,8 @@ public Builder serviceEndpoints(ServiceEndpointsBuilder serviceEndpointsBuilder)
286289
/**
287290
* Set how long the constructor will block awaiting a successful connection to LaunchDarkly.
288291
* Setting this to a zero or negative duration will not block and cause the constructor to return immediately.
289-
* Default value: 5000
292+
* <p>
293+
* The default is {@link #DEFAULT_START_WAIT}.
290294
*
291295
* @param startWait maximum time to wait; null to use the default
292296
* @return the builder

0 commit comments

Comments
 (0)