More interfaces that were missed previously.

This commit is contained in:
Mike Jensen
2014-01-09 09:50:15 -07:00
parent ac27ebd995
commit 2aa9de3dfb
5 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package java.util.concurrent;
import java.util.Collection;
import java.util.Queue;
public interface BlockingQueue<T> extends Queue<T> {
public void put(T e) throws InterruptedException;
public boolean offer(T e, long timeout, TimeUnit unit) throws InterruptedException;
public T take() throws InterruptedException;
public T poll(long timeout, TimeUnit unit) throws InterruptedException;
public int remainingCapacity();
public int drainTo(Collection<? super T> c);
public int drainTo(Collection<? super T> c, int maxElements);
}