@@ -46,7 +46,7 @@ public class SplitClientConfig {
4646 private final int _streamingReconnectBackoffBase ;
4747 private final String _authServiceURL ;
4848 private final String _streamingServiceURL ;
49- private final int _streamingRetryDelay ;
49+ private final int _onDemandFetchRetryDelayMs ;
5050
5151 // Proxy configs
5252 private final HttpHost _proxy ;
@@ -91,7 +91,7 @@ private SplitClientConfig(String endpoint,
9191 int streamingReconnectBackoffBase ,
9292 String authServiceURL ,
9393 String streamingServiceURL ,
94- int streamingRetryDelay ) {
94+ int onDemandFetchRetryDelayMs ) {
9595 _endpoint = endpoint ;
9696 _eventsEndpoint = eventsEndpoint ;
9797 _featuresRefreshRate = pollForFeatureChangesEveryNSeconds ;
@@ -122,7 +122,7 @@ private SplitClientConfig(String endpoint,
122122 _streamingReconnectBackoffBase = streamingReconnectBackoffBase ;
123123 _authServiceURL = authServiceURL ;
124124 _streamingServiceURL = streamingServiceURL ;
125- _streamingRetryDelay = streamingRetryDelay ;
125+ _onDemandFetchRetryDelayMs = onDemandFetchRetryDelayMs ;
126126
127127 Properties props = new Properties ();
128128 try {
@@ -251,7 +251,7 @@ public String streamingServiceURL() {
251251 return _streamingServiceURL ;
252252 }
253253
254- public int streamingRetryDelay () {return _streamingRetryDelay ;}
254+ public int streamingRetryDelay () {return _onDemandFetchRetryDelayMs ;}
255255
256256 public static final class Builder {
257257
@@ -288,7 +288,7 @@ public static final class Builder {
288288 private int _streamingReconnectBackoffBase = 1 ;
289289 private String _authServiceURL = "https://auth.split.io/api/auth" ;
290290 private String _streamingServiceURL = "https://streaming.split.io/sse" ;
291- private int _streamingRetryDelay = 50 ;
291+ private int _onDemandFetchRetryDelayMs = 50 ;
292292
293293 public Builder () {
294294 }
@@ -682,11 +682,11 @@ public Builder streamingServiceURL(String streamingServiceURL) {
682682
683683 /**
684684 * Set Streaming retry delay.
685- * @param streamingRetryDelay
685+ * @param onDemandFetchRetryDelayMs
686686 * @return
687687 */
688- public Builder streamingRetryDelay (int streamingRetryDelay ) {
689- _streamingRetryDelay = streamingRetryDelay ;
688+ public Builder streamingRetryDelay (int onDemandFetchRetryDelayMs ) {
689+ _onDemandFetchRetryDelayMs = onDemandFetchRetryDelayMs ;
690690 return this ;
691691 }
692692
@@ -760,7 +760,7 @@ public SplitClientConfig build() {
760760 throw new IllegalArgumentException ("streamingServiceURL must not be null" );
761761 }
762762
763- if (_streamingRetryDelay <= 0 ) {
763+ if (_onDemandFetchRetryDelayMs <= 0 ) {
764764 throw new IllegalStateException ("streamingRetryDelay must be > 0" );
765765 }
766766
@@ -795,7 +795,7 @@ public SplitClientConfig build() {
795795 _streamingReconnectBackoffBase ,
796796 _authServiceURL ,
797797 _streamingServiceURL ,
798- _streamingRetryDelay );
798+ _onDemandFetchRetryDelayMs );
799799 }
800800 }
801801}
0 commit comments