目录
知识体系
BlockingQueue
添加方法:
boolean add(E e)、boolean offer() 、void put()、boolean offer(E e,long time,Timeunit timeunit)
取值方法:
take()、poll(long time,TimeUnit timeunit)
其他方法:
int remainingCapacity():获取剩余队列的空间大小
boolean remove(Object o):删除指定元素
boolean contains():判断队列是否有改元素