摘要: 认识BlockingQueue BlockingQueue是一种可以阻塞线程的队列,java中对这种队列提供了方法抽象,BlockingQueue则是抽象的接口。 add:添加元素到队列里,添加成功返回true,由于容量满了添加失败会抛出IllegalStateException异常 offer:添 阅读全文
posted @ 2016-10-10 16:43 5207 阅读(781) 评论(0) 推荐(0) 编辑