【2019春招准备:13. 安全Collections----13.1 BlockingQueue阻塞队列家族】

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33907408/article/details/85222613

参考:强烈推荐 http://www.cnblogs.com/WangHaiMing/p/8798709.html
BlockingQueue接口

public interface BlockingQueue<E> extends Queue<E> {
	boolean add(E e);
	boolean offer(E e);
	void put(E e) throws InterruptedException;
	boolean offer(E e, long timeout, TimeUnit unit) throws InterruptedException;
	E take() throws InterruptedException;
	E poll(long timeout, TimeUnit unit) throws InterruptedException;
	int remainingCapacity();
	boolean remove(Object o);
	public boolean contains(Object o);
	int drainTo(Collection<? super E> c);
	int drainTo(Collection<? super E> c, int maxElements);
}

家庭成员
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_33907408/article/details/85222613
今日推荐