Class SnapshotMap<K,​V>

  • All Implemented Interfaces:
    ConcurrentMap<K,​V>, Map<K,​V>

    public class SnapshotMap<K,​V>
    extends Object
    implements ConcurrentMap<K,​V>
    Acts as a HashMap until lockSnapshots is called. After that, it is a copy on write strategy.
    • Constructor Detail

      • SnapshotMap

        public SnapshotMap​(boolean lockSnapshots)
      • SnapshotMap

        public SnapshotMap​(Map<K,​V> existing,
                           boolean shallow,
                           boolean lockSnapshots,
                           boolean snapFirst)