what-the-bank/sources/com/google/android/gms/internal/base/zao.java

36 lines
1.3 KiB
Java

package com.google.android.gms.internal.base;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/* loaded from: classes2.dex */
final class zao implements zam {
private zao() {
}
@Override // com.google.android.gms.internal.base.zam
public final ExecutorService zaa(ThreadFactory threadFactory, int i) {
return zac(1, threadFactory, 1);
}
@Override // com.google.android.gms.internal.base.zam
public final ExecutorService zab(int i, int i2) {
return zac(4, Executors.defaultThreadFactory(), 2);
}
@Override // com.google.android.gms.internal.base.zam
public final ExecutorService zac(int i, ThreadFactory threadFactory, int i2) {
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(i, i, 60L, TimeUnit.SECONDS, new LinkedBlockingQueue(), threadFactory);
threadPoolExecutor.allowCoreThreadTimeOut(true);
return Executors.unconfigurableExecutorService(threadPoolExecutor);
}
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ zao(zan zanVar) {
}
}