What's the diff between concurrentHashMap and FastMap.shared

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
yksdtc
Posts: 76
Joined: Sat Jul 30, 2011 1:16 pm

What's the diff between concurrentHashMap and FastMap.shared

Post by yksdtc »

they all both thread safe。
am I right?
NosBit
L2j Veteran
L2j Veteran
Posts: 314
Joined: Mon Mar 11, 2013 4:19 pm

Re: What's the diff between concurrentHashMap and FastMap.sh

Post by NosBit »

Yes but FastMap is sorted its like a thread-safe LinkedHashMap
Image
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: What's the diff between concurrentHashMap and FastMap.sh

Post by Zoey76 »

Nos wrote:Yes but FastMap is sorted its like a thread-safe LinkedHashMap
FastMap is sorted by insert order, the other "thread-safe" sorted map is ConcurrentSkipListMap which is sorted by natural order of keys.

Also FastMap is concurrent, and does not imply thread-safe, unless specified calling shared.
Powered by Eclipse 4.30 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.2.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
Post Reply