ConcurrentHashMap詳解

ConcurrentHashMap (使用場景 :系統配置類或者做成緩存Map) ConcurrentHashMap的特點: ConcurrentHashMap允許一邊更新、一邊遍歷,也就是說在Iterator對象遍歷的時候, ConcurrentHashMap也可以進行remove,put操作,且遍歷的數據會隨着remove,put操作產出變化,也就是說在Iterator對象遍歷的時候,Conc
相關文章
相關標籤/搜索