K - key typeV - value type.public class DefaultTransactionalMap<K,V> extends Object implements org.onosproject.store.service.TransactionalMap<K,V>
| Constructor and Description |
|---|
DefaultTransactionalMap(String name,
org.onosproject.store.service.ConsistentMap<K,V> backingMap,
org.onosproject.store.service.TransactionContext txContext,
org.onosproject.store.service.Serializer serializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(K key) |
boolean |
containsValue(V value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(K key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
protected List<org.onosproject.store.service.UpdateOperation<String,byte[]>> |
prepareDatabaseUpdates() |
V |
put(K key,
V value) |
V |
putIfAbsent(K key,
V value) |
V |
remove(K key) |
boolean |
remove(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
protected void |
rollback()
Discards all changes made to this transactional map.
|
int |
size() |
Collection<V> |
values() |
public int size()
public boolean isEmpty()
public boolean containsKey(K key)
public boolean containsValue(V value)
public void clear()
public Collection<V> values()
protected List<org.onosproject.store.service.UpdateOperation<String,byte[]>> prepareDatabaseUpdates()
protected void rollback()
Copyright © 2015. All rights reserved.