@@ -304,10 +304,10 @@ public static final class Builder {
304304 private int _streamingReconnectBackoffBase = 1 ;
305305 private String _authServiceURL = "https://auth.split.io/api/auth" ;
306306 private String _streamingServiceURL = "https://streaming.split.io/sse" ;
307- private int _onDemandFetchRetryDelayMs = 50 ;
308- private int _onDemandFetchMaxRetries = 10 ;
309- private int _failedAttemptsBeforeLogging = - 1 ;
310- private boolean _cdnDebugLogging = true ;
307+ private final int _onDemandFetchRetryDelayMs = 50 ;
308+ private final int _onDemandFetchMaxRetries = 10 ;
309+ private final int _failedAttemptsBeforeLogging = 10 ;
310+ private final boolean _cdnDebugLogging = true ;
311311
312312 public Builder () {
313313 }
@@ -699,36 +699,6 @@ public Builder streamingServiceURL(String streamingServiceURL) {
699699 return this ;
700700 }
701701
702- /**
703- * Set Streaming retry delay.
704- * @param onDemandFetchRetryDelayMs
705- * @return
706- */
707- public Builder streamingRetryDelay (int onDemandFetchRetryDelayMs ) {
708- _onDemandFetchRetryDelayMs = onDemandFetchRetryDelayMs ;
709- return this ;
710- }
711-
712- public Builder streamingFetchMaxRetries (int maxRetries ) {
713- _onDemandFetchMaxRetries = maxRetries ;
714- return this ;
715- }
716-
717- public Builder failedAttemptsBeforeLoggingCDNInfo (int failedAttemptsBeforeLogging ) {
718- _failedAttemptsBeforeLogging = failedAttemptsBeforeLogging ;
719- return this ;
720- }
721-
722- /**
723- * Enable logging response headers for requests made to our CDN.
724- * @param cdnDebugLogging
725- * @return
726- */
727- public Builder cdnDebugLogging (boolean cdnDebugLogging ) {
728- _cdnDebugLogging = cdnDebugLogging ;
729- return this ;
730- }
731-
732702 public SplitClientConfig build () {
733703 if (_featuresRefreshRate < 5 ) {
734704 throw new IllegalArgumentException ("featuresRefreshRate must be >= 5: " + _featuresRefreshRate );
@@ -806,10 +776,6 @@ public SplitClientConfig build() {
806776 throw new IllegalStateException ("_onDemandFetchMaxRetries must be > 0" );
807777 }
808778
809- if (_failedAttemptsBeforeLogging < 0 ) {
810- _failedAttemptsBeforeLogging = _onDemandFetchMaxRetries / 2 ;
811- }
812-
813779 return new SplitClientConfig (
814780 _endpoint ,
815781 _eventsEndpoint ,
0 commit comments