package com.google.firebase.messaging;

import android.content.SharedPreferences;
import androidx.annotation.Nullable;
import java.lang.ref.WeakReference;
import java.util.NoSuchElementException;
import java.util.concurrent.Executor;
import java.util.concurrent.ScheduledExecutorService;

/* JADX INFO: loaded from: classes2.dex */
public final class h0 {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static WeakReference f24180c;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public b0 f24181a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Executor f24182b;

    public h0(SharedPreferences sharedPreferences, ScheduledExecutorService scheduledExecutorService) {
    }

    @Nullable
    public synchronized g0 getNextTopicOperation() {
        return g0.from(this.f24181a.peek());
    }

    @Nullable
    public synchronized g0 pollTopicOperation() {
        try {
        } catch (NoSuchElementException unused) {
            return null;
        }
        return g0.from(this.f24181a.b());
    }
}
