Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
什么时候应该更喜欢 AkkaTransactionalMap而不是常规的不可变映射,SynchronizedMap反之亦然?(或者我在这里比较苹果和橙子?)
TransactionalMap
SynchronizedMap
当您想要进行交易时,请使用交易地图。将 Ctries/ConcurrentHashMap/NonblockingHashMap 用于混合读写,将 CAS+immutable.Map 用于非常非常不频繁的写入。