@@ -38,12 +38,22 @@ class FDv2Builder {
3838 std::optional<std::string> base_url_override_;
3939 };
4040
41+ /* *
42+ * Constructs a builder with no initializers, no synchronizers, and no
43+ * FDv1 fallback. Use Default() for the spec-recommended configuration.
44+ */
4145 FDv2Builder ();
4246
4347 /* *
44- * @brief Appends a polling initializer to the initializers list. The
45- * first call to this method on a default-constructed builder replaces
46- * the spec-default initializer list; subsequent calls append.
48+ * @return A builder pre-populated with the spec-recommended initializers,
49+ * synchronizers, and FDv1 fallback. Equivalent to calling
50+ * Initializer(), Synchronizer(), and FDv1Fallback() with the
51+ * standard sources.
52+ */
53+ static FDv2Builder Default ();
54+
55+ /* *
56+ * @brief Appends a polling initializer to the initializers list.
4757 * @param source Polling source configuration for the initializer.
4858 * @return Reference to this.
4959 */
@@ -52,18 +62,15 @@ class FDv2Builder {
5262 /* *
5363 * @brief Appends a streaming synchronizer to the synchronizers list.
5464 * Order in the list determines preference: the first entry is the
55- * primary synchronizer, subsequent entries are fallbacks. The first
56- * call to a Synchronizer overload on a default-constructed builder
57- * replaces the spec-default synchronizer list; subsequent calls append.
65+ * primary synchronizer, subsequent entries are fallbacks.
5866 * @param source Streaming source configuration.
5967 * @return Reference to this.
6068 */
6169 FDv2Builder& Synchronizer (Streaming source);
6270
6371 /* *
6472 * @brief Appends a polling synchronizer to the synchronizers list. See
65- * Synchronizer(Streaming) for ordering and default-replacement
66- * semantics.
73+ * Synchronizer(Streaming) for ordering semantics.
6774 * @param source Polling source configuration.
6875 * @return Reference to this.
6976 */
@@ -130,8 +137,6 @@ class FDv2Builder {
130137
131138 private:
132139 built::FDv2Config config_;
133- bool initializers_explicit_;
134- bool synchronizers_explicit_;
135140};
136141
137142} // namespace launchdarkly::server_side::config::builders
0 commit comments