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

38 lines
1.7 KiB
Java

package com.google.common.util.concurrent;
import java.util.concurrent.Callable;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
/* loaded from: classes2.dex */
abstract class WrappingScheduledExecutorService extends WrappingExecutorService implements ScheduledExecutorService {
final ScheduledExecutorService delegate;
/* JADX INFO: Access modifiers changed from: protected */
public WrappingScheduledExecutorService(ScheduledExecutorService scheduledExecutorService) {
super(scheduledExecutorService);
this.delegate = scheduledExecutorService;
}
@Override // java.util.concurrent.ScheduledExecutorService
public final ScheduledFuture<?> schedule(Runnable runnable, long j, TimeUnit timeUnit) {
return this.delegate.schedule(wrapTask(runnable), j, timeUnit);
}
@Override // java.util.concurrent.ScheduledExecutorService
public final <V> ScheduledFuture<V> schedule(Callable<V> callable, long j, TimeUnit timeUnit) {
return this.delegate.schedule(wrapTask(callable), j, timeUnit);
}
@Override // java.util.concurrent.ScheduledExecutorService
public final ScheduledFuture<?> scheduleAtFixedRate(Runnable runnable, long j, long j2, TimeUnit timeUnit) {
return this.delegate.scheduleAtFixedRate(wrapTask(runnable), j, j2, timeUnit);
}
@Override // java.util.concurrent.ScheduledExecutorService
public final ScheduledFuture<?> scheduleWithFixedDelay(Runnable runnable, long j, long j2, TimeUnit timeUnit) {
return this.delegate.scheduleWithFixedDelay(wrapTask(runnable), j, j2, timeUnit);
}
}