what-the-bank/sources/com/google/android/gms/internal/gtm/zzdh.java

33 lines
1.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.gtm;
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 zzdh implements zzde {
private zzdh() {
}
@Override // com.google.android.gms.internal.gtm.zzde
public final ExecutorService zzr(int i) {
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1, 60L, TimeUnit.SECONDS, new LinkedBlockingQueue(), Executors.defaultThreadFactory());
threadPoolExecutor.allowCoreThreadTimeOut(true);
return Executors.unconfigurableExecutorService(threadPoolExecutor);
}
@Override // com.google.android.gms.internal.gtm.zzde
public final ScheduledExecutorService zza(int i, int i2) {
return Executors.unconfigurableScheduledExecutorService(Executors.newScheduledThreadPool(1));
}
@Override // com.google.android.gms.internal.gtm.zzde
public final ScheduledExecutorService zza(int i, ThreadFactory threadFactory, int i2) {
return Executors.unconfigurableScheduledExecutorService(Executors.newScheduledThreadPool(1, threadFactory));
}
}