Class SnapshotMap<K,V>

java.lang.Object
org.jboss.resteasy.util.snapshot.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 Details

    • SnapshotMap

      public SnapshotMap(boolean lockSnapshots)
    • SnapshotMap

      public SnapshotMap(Map<K,V> existing, boolean shallow, boolean lockSnapshots, boolean snapFirst)
  • Method Details