- All Implemented Interfaces:
- Serializable, Cloneable, Map<K,V>
- Enclosing class:
- ReplicationSpec
public static class ReplicationSpec.ReplStateMap<K,V extends Comparable>
extends HashMap<K,V>
Class that extends HashMap with a slightly different put semantic, where
put behaves as follows:
a) If the key does not already exist, then retains existing HashMap.put behaviour
b) If the map already contains an entry for the given key, then will replace only
if the new value is "greater" than the old value.
The primary goal for this is to track repl updates for dbs and tables, to replace state
only if the state is newer.
- See Also:
- Serialized Form