- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
50 lines
2.2 KiB
Java
50 lines
2.2 KiB
Java
package com.google.firebase.remoteconfig.internal;
|
|
|
|
import android.content.Context;
|
|
import com.google.firebase.FirebaseApp;
|
|
import com.google.firebase.installations.FirebaseInstallationsApi;
|
|
import java.util.LinkedHashSet;
|
|
import java.util.Set;
|
|
import java.util.concurrent.ScheduledExecutorService;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class ConfigRealtimeHandler {
|
|
public final ConfigCacheClient activatedCacheClient;
|
|
public final ConfigFetchHandler configFetchHandler;
|
|
public final ConfigRealtimeHttpClient configRealtimeHttpClient;
|
|
public final Context context;
|
|
public final FirebaseApp firebaseApp;
|
|
public final FirebaseInstallationsApi firebaseInstallations;
|
|
public final Set listeners;
|
|
public final ConfigMetadataClient metadataClient;
|
|
public final String namespace;
|
|
public final ScheduledExecutorService scheduledExecutorService;
|
|
|
|
public ConfigRealtimeHandler(FirebaseApp firebaseApp, FirebaseInstallationsApi firebaseInstallationsApi, ConfigFetchHandler configFetchHandler, ConfigCacheClient configCacheClient, Context context, String str, ConfigMetadataClient configMetadataClient, ScheduledExecutorService scheduledExecutorService) {
|
|
LinkedHashSet linkedHashSet = new LinkedHashSet();
|
|
this.listeners = linkedHashSet;
|
|
this.configRealtimeHttpClient = new ConfigRealtimeHttpClient(firebaseApp, firebaseInstallationsApi, configFetchHandler, configCacheClient, context, str, linkedHashSet, configMetadataClient, scheduledExecutorService);
|
|
this.firebaseApp = firebaseApp;
|
|
this.configFetchHandler = configFetchHandler;
|
|
this.firebaseInstallations = firebaseInstallationsApi;
|
|
this.activatedCacheClient = configCacheClient;
|
|
this.context = context;
|
|
this.namespace = str;
|
|
this.metadataClient = configMetadataClient;
|
|
this.scheduledExecutorService = scheduledExecutorService;
|
|
}
|
|
|
|
public final synchronized void beginRealtime() {
|
|
if (!this.listeners.isEmpty()) {
|
|
this.configRealtimeHttpClient.startHttpConnection();
|
|
}
|
|
}
|
|
|
|
public synchronized void setBackgroundState(boolean z) {
|
|
this.configRealtimeHttpClient.setRealtimeBackgroundState(z);
|
|
if (!z) {
|
|
beginRealtime();
|
|
}
|
|
}
|
|
}
|