@@ -304,10 +304,10 @@ public static final class Builder {
304
304
private int _streamingReconnectBackoffBase = 1 ;
305
305
private String _authServiceURL = "https://auth.split.io/api/auth" ;
306
306
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 ;
311
311
312
312
public Builder () {
313
313
}
@@ -699,36 +699,6 @@ public Builder streamingServiceURL(String streamingServiceURL) {
699
699
return this ;
700
700
}
701
701
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
-
732
702
public SplitClientConfig build () {
733
703
if (_featuresRefreshRate < 5 ) {
734
704
throw new IllegalArgumentException ("featuresRefreshRate must be >= 5: " + _featuresRefreshRate );
@@ -806,10 +776,6 @@ public SplitClientConfig build() {
806
776
throw new IllegalStateException ("_onDemandFetchMaxRetries must be > 0" );
807
777
}
808
778
809
- if (_failedAttemptsBeforeLogging < 0 ) {
810
- _failedAttemptsBeforeLogging = _onDemandFetchMaxRetries / 2 ;
811
- }
812
-
813
779
return new SplitClientConfig (
814
780
_endpoint ,
815
781
_eventsEndpoint ,
0 commit comments