K - Property keyV - Property valuepublic class DefaultGroupPropertyMap<K,V> extends PersistableMap<K,V>
Map to manage group properties.
Updates made to the elements in this map will also be applied to the database.
Note this implementation assumes group property changes will be relatively
infrequent and therefore does not try to optimize database I/O for performance.
Each call to a Map mutator method (direct or indirect via Iterator)
will result in a corresponding synchronous update to the database.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
DefaultGroupPropertyMap(Group group)
Group properties map constructor; requires associated
Group instance |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Set<Map.Entry<K,V>> |
entrySet() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
V |
put(K key,
V value,
boolean persist)
Custom method to put properties into the map, optionally without
triggering persistence.
|
V |
remove(Object key) |
Collection<V> |
values() |
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, get, getOrDefault, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, sizeequals, hashCode, toStringpublic V put(K key, V value, boolean persist)
put in class PersistableMap<K,V>key - The property namevalue - The property valuepersist - True if the changes should be persisted to the databasepublic void clear()
public Collection<V> values()
Copyright © 2003–2019 Ignite Realtime. All rights reserved.