what-the-bank/sources/com/google/android/gms/internal/firebase_messaging/zzc.java

28 lines
1.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.firebase_messaging;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/* loaded from: classes.dex */
final class zzc implements zzb {
private zzc() {
}
@Override // com.google.android.gms.internal.firebase_messaging.zzb
public final ExecutorService zza(ThreadFactory threadFactory, int i) {
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1, 60L, TimeUnit.SECONDS, new LinkedBlockingQueue(), threadFactory);
threadPoolExecutor.allowCoreThreadTimeOut(true);
return Executors.unconfigurableExecutorService(threadPoolExecutor);
}
@Override // com.google.android.gms.internal.firebase_messaging.zzb
public final ScheduledExecutorService zza(int i, ThreadFactory threadFactory, int i2) {
return Executors.unconfigurableScheduledExecutorService(Executors.newScheduledThreadPool(1, threadFactory));
}
}