Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public boolean isConfigInitialized() {
private ProjectConfig getConfig() throws DevCycleException {
Call<ProjectConfig> config = this.configApiClient.getConfig(this.sdkKey, this.configETag, this.configLastModified);
this.config = getResponseWithRetries(config, 1);
if (this.options.isEnableBetaRealtimeUpdates()) {
if (!this.options.isDisableRealtimeUpdates()) {
try {
URI uri = new URI(this.config.getSse().getHostname() + this.config.getSse().getPath());
if (sseManager == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ public class DevCycleLocalOptions implements IDevCycleOptions {

private boolean disableAutomaticEventLogging = false;

private boolean disableRealtimeUpdates = false;

/**
* @deprecated real time updates are enabled by default now
*/
@Deprecated
private boolean enableBetaRealtimeUpdates = false;

@JsonIgnore
Expand All @@ -52,7 +58,9 @@ public DevCycleLocalOptions(
boolean disableCustomEventLogging,
IDevCycleLogger customLogger,
IRestOptions restOptions,
boolean enableBetaRealtimeUpdates
@Deprecated
boolean enableBetaRealtimeUpdates,
boolean disableRealtimeUpdates
) {
this.configRequestTimeoutMs = configRequestTimeoutMs > 0 ? configRequestTimeoutMs : this.configRequestTimeoutMs;
this.configPollingIntervalMS = getConfigPollingIntervalMS(configPollingIntervalMs, configPollingIntervalMS);
Expand All @@ -67,6 +75,7 @@ public DevCycleLocalOptions(
this.customLogger = customLogger;
this.restOptions = restOptions;
this.enableBetaRealtimeUpdates = enableBetaRealtimeUpdates;
this.disableRealtimeUpdates = disableRealtimeUpdates;

if (this.flushEventQueueSize >= this.maxEventQueueSize) {
DevCycleLogger.warning("flushEventQueueSize: " + this.flushEventQueueSize + " must be smaller than maxEventQueueSize: " + this.maxEventQueueSize);
Expand Down
Loading