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

Commit

Permalink
Update LDConfig.Builder startWait Javadoc now that it takes a Duration (
Browse files Browse the repository at this point in the history
  • Loading branch information
richardfearn authored Sep 2, 2022
1 parent 9c5fa25 commit 149879b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/com/launchdarkly/sdk/server/LDConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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
* <p>
* The default is {@link #DEFAULT_START_WAIT}.
*
* @param startWait maximum time to wait; null to use the default
* @return the builder
Expand Down

0 comments on commit 149879b

Please sign in to comment.