BlockingQueue 接口浅析

public interface BlockingQueue<E> extends Queue<E> { /* 插入一个元素到对列中,若是成功则返回true 若是失败则抛出 IllegalStateException异常,若是队列有大小限制的话,一般倾向于使用offer方法 boolean add(E e); //插入元素到对列,若是成功返回true,若是失败则返回fals
相关文章
相关标签/搜索