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

52 lines
1.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.common.util.concurrent;
import com.google.common.collect.ForwardingQueue;
import java.util.Collection;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.TimeUnit;
/* loaded from: classes2.dex */
public abstract class ForwardingBlockingQueue<E> extends ForwardingQueue<E> implements BlockingQueue<E> {
/* JADX INFO: Access modifiers changed from: protected */
@Override // com.google.common.collect.ForwardingQueue, com.google.common.collect.ForwardingCollection, com.google.common.collect.ForwardingObject
public abstract BlockingQueue<E> delegate();
protected ForwardingBlockingQueue() {
}
@Override // java.util.concurrent.BlockingQueue
public int drainTo(Collection<? super E> collection, int i) {
return delegate().drainTo(collection, i);
}
@Override // java.util.concurrent.BlockingQueue
public int drainTo(Collection<? super E> collection) {
return delegate().drainTo(collection);
}
@Override // java.util.concurrent.BlockingQueue
public boolean offer(E e, long j, TimeUnit timeUnit) throws InterruptedException {
return delegate().offer(e, j, timeUnit);
}
@Override // java.util.concurrent.BlockingQueue
public E poll(long j, TimeUnit timeUnit) throws InterruptedException {
return delegate().poll(j, timeUnit);
}
@Override // java.util.concurrent.BlockingQueue
public void put(E e) throws InterruptedException {
delegate().put(e);
}
@Override // java.util.concurrent.BlockingQueue
public int remainingCapacity() {
return delegate().remainingCapacity();
}
@Override // java.util.concurrent.BlockingQueue
public E take() throws InterruptedException {
return delegate().take();
}
}