they all both thread safe。
am I right?
What's the diff between concurrentHashMap and FastMap.shared
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- yksdtc
- Posts: 76
- Joined: Sat Jul 30, 2011 1:16 pm
-
- L2j Veteran
- Posts: 314
- Joined: Mon Mar 11, 2013 4:19 pm
Re: What's the diff between concurrentHashMap and FastMap.sh
Yes but FastMap is sorted its like a thread-safe LinkedHashMap
- Zoey76
- L2j Inner Circle
- Posts: 7005
- Joined: Tue Aug 11, 2009 3:36 am
Re: What's the diff between concurrentHashMap and FastMap.sh
FastMap is sorted by insert order, the other "thread-safe" sorted map is ConcurrentSkipListMap which is sorted by natural order of keys.Nos wrote:Yes but FastMap is sorted its like a thread-safe LinkedHashMap
Also FastMap is concurrent, and does not imply thread-safe, unless specified calling shared.
Powered by Eclipse 4.30 | Eclipse Temurin 21 | MariaDB 11.3.2 | L2J Server 2.6.3.0 - High Five
Join our Discord!
Join our Discord!