package com.google.firebase.concurrent; import java.util.Collection; import java.util.List; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Future; import java.util.concurrent.FutureTask; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; /* loaded from: classes3.dex */ final class LimitedConcurrencyExecutorService extends LimitedConcurrencyExecutor implements ExecutorService { private final ExecutorService delegate; public LimitedConcurrencyExecutorService(ExecutorService executorService, int i) { super(executorService, i); this.delegate = executorService; } public static /* synthetic */ Object lambda$submit$0(Runnable runnable, Object obj) throws Exception { runnable.run(); return obj; } public static /* synthetic */ Object lambda$submit$1(Runnable runnable) throws Exception { runnable.run(); return null; } @Override // java.util.concurrent.ExecutorService public boolean awaitTermination(long j4, TimeUnit timeUnit) throws InterruptedException { return this.delegate.awaitTermination(j4, timeUnit); } @Override // java.util.concurrent.ExecutorService public List> invokeAll(Collection> collection) throws InterruptedException { return this.delegate.invokeAll(collection); } @Override // java.util.concurrent.ExecutorService public T invokeAny(Collection> collection) throws ExecutionException, InterruptedException { return (T) this.delegate.invokeAny(collection); } @Override // java.util.concurrent.ExecutorService public boolean isShutdown() { return this.delegate.isShutdown(); } @Override // java.util.concurrent.ExecutorService public boolean isTerminated() { return this.delegate.isTerminated(); } @Override // java.util.concurrent.ExecutorService public void shutdown() { throw new UnsupportedOperationException("Shutting down is not allowed."); } @Override // java.util.concurrent.ExecutorService public List shutdownNow() { throw new UnsupportedOperationException("Shutting down is not allowed."); } @Override // java.util.concurrent.ExecutorService public Future submit(Callable callable) { FutureTask futureTask = new FutureTask(callable); execute(futureTask); return futureTask; } @Override // java.util.concurrent.ExecutorService public List> invokeAll(Collection> collection, long j4, TimeUnit timeUnit) throws InterruptedException { return this.delegate.invokeAll(collection, j4, timeUnit); } @Override // java.util.concurrent.ExecutorService public T invokeAny(Collection> collection, long j4, TimeUnit timeUnit) throws ExecutionException, InterruptedException, TimeoutException { return (T) this.delegate.invokeAny(collection, j4, timeUnit); } @Override // java.util.concurrent.ExecutorService public Future submit(Runnable runnable, T t2) { return submit(new i(runnable, t2, 0)); } @Override // java.util.concurrent.ExecutorService public Future submit(Runnable runnable) { return submit(new h(runnable, 0)); } }