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

Update LDConfig.Builder startWait Javadoc now that it takes a Duration #274

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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