what-the-bank/sources/com/google/common/util/concurrent/ForwardingExecutorService.java

84 lines
3.0 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.common.util.concurrent;
import com.google.common.collect.ForwardingObject;
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.TimeUnit;
import java.util.concurrent.TimeoutException;
/* loaded from: classes2.dex */
public abstract class ForwardingExecutorService extends ForwardingObject implements ExecutorService {
/* JADX INFO: Access modifiers changed from: protected */
@Override // com.google.common.collect.ForwardingObject
public abstract ExecutorService delegate();
@Override // java.util.concurrent.ExecutorService
public boolean awaitTermination(long j, TimeUnit timeUnit) throws InterruptedException {
return delegate().awaitTermination(j, timeUnit);
}
@Override // java.util.concurrent.ExecutorService
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> collection) throws InterruptedException {
return delegate().invokeAll(collection);
}
@Override // java.util.concurrent.ExecutorService
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> collection, long j, TimeUnit timeUnit) throws InterruptedException {
return delegate().invokeAll(collection, j, timeUnit);
}
@Override // java.util.concurrent.ExecutorService
public <T> T invokeAny(Collection<? extends Callable<T>> collection) throws InterruptedException, ExecutionException {
return (T) delegate().invokeAny(collection);
}
@Override // java.util.concurrent.ExecutorService
public <T> T invokeAny(Collection<? extends Callable<T>> collection, long j, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException {
return (T) delegate().invokeAny(collection, j, timeUnit);
}
@Override // java.util.concurrent.ExecutorService
public boolean isShutdown() {
return delegate().isShutdown();
}
@Override // java.util.concurrent.ExecutorService
public boolean isTerminated() {
return delegate().isTerminated();
}
@Override // java.util.concurrent.ExecutorService
public void shutdown() {
delegate().shutdown();
}
@Override // java.util.concurrent.ExecutorService
public List<Runnable> shutdownNow() {
return delegate().shutdownNow();
}
@Override // java.util.concurrent.Executor
public void execute(Runnable runnable) {
delegate().execute(runnable);
}
@Override // java.util.concurrent.ExecutorService
public <T> Future<T> submit(Callable<T> callable) {
return delegate().submit(callable);
}
@Override // java.util.concurrent.ExecutorService
public Future<?> submit(Runnable runnable) {
return delegate().submit(runnable);
}
@Override // java.util.concurrent.ExecutorService
public <T> Future<T> submit(Runnable runnable, T t) {
return delegate().submit(runnable, t);
}
}