mirror of
https://github.com/corda/corda.git
synced 2025-01-09 14:33:30 +00:00
21 lines
562 B
Java
21 lines
562 B
Java
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);
|
|
}
|