K - type of key.V - type of value.public class DefaultAsyncConsistentMap<K,V> extends Object implements org.onosproject.store.service.AsyncConsistentMap<K,V>
| Constructor and Description |
|---|
DefaultAsyncConsistentMap(String name,
Database database,
org.onosproject.store.service.Serializer serializer,
boolean readOnly) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
clear() |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
compute(K key,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
computeIf(K key,
java.util.function.Predicate<? super V> condition,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
computeIfAbsent(K key,
java.util.function.Function<? super K,? extends V> mappingFunction) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
computeIfPresent(K key,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction) |
CompletableFuture<Boolean> |
containsKey(K key) |
CompletableFuture<Boolean> |
containsValue(V value) |
protected K |
dK(String key) |
CompletableFuture<Set<Map.Entry<K,org.onosproject.store.service.Versioned<V>>>> |
entrySet() |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
get(K key) |
CompletableFuture<Boolean> |
isEmpty() |
CompletableFuture<Set<K>> |
keySet() |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
put(K key,
V value) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
putAndGet(K key,
V value) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
putIfAbsent(K key,
V value) |
CompletableFuture<Optional<org.onosproject.store.service.Versioned<V>>> |
putIfAbsentAndGet(K key,
V value) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
remove(K key) |
CompletableFuture<Boolean> |
remove(K key,
long version) |
CompletableFuture<Boolean> |
remove(K key,
V value) |
CompletableFuture<Boolean> |
replace(K key,
long oldVersion,
V newValue) |
CompletableFuture<Boolean> |
replace(K key,
V oldValue,
V newValue) |
CompletableFuture<Optional<org.onosproject.store.service.Versioned<V>>> |
replaceAndGet(K key,
long oldVersion,
V newValue) |
CompletableFuture<Integer> |
size() |
CompletableFuture<Collection<org.onosproject.store.service.Versioned<V>>> |
values() |
public CompletableFuture<Integer> size()
public CompletableFuture<Boolean> isEmpty()
public CompletableFuture<Boolean> containsKey(K key)
public CompletableFuture<Boolean> containsValue(V value)
public CompletableFuture<org.onosproject.store.service.Versioned<V>> get(K key)
public CompletableFuture<org.onosproject.store.service.Versioned<V>> computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)
public CompletableFuture<org.onosproject.store.service.Versioned<V>> computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
public CompletableFuture<org.onosproject.store.service.Versioned<V>> compute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
public CompletableFuture<org.onosproject.store.service.Versioned<V>> computeIf(K key, java.util.function.Predicate<? super V> condition, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
public CompletableFuture<org.onosproject.store.service.Versioned<V>> put(K key, V value)
public CompletableFuture<org.onosproject.store.service.Versioned<V>> putAndGet(K key, V value)
public CompletableFuture<Optional<org.onosproject.store.service.Versioned<V>>> putIfAbsentAndGet(K key, V value)
public CompletableFuture<org.onosproject.store.service.Versioned<V>> remove(K key)
public CompletableFuture<Void> clear()
public CompletableFuture<Set<K>> keySet()
public CompletableFuture<Collection<org.onosproject.store.service.Versioned<V>>> values()
public CompletableFuture<Set<Map.Entry<K,org.onosproject.store.service.Versioned<V>>>> entrySet()
public CompletableFuture<org.onosproject.store.service.Versioned<V>> putIfAbsent(K key, V value)
public CompletableFuture<Boolean> remove(K key, V value)
public CompletableFuture<Boolean> remove(K key, long version)
public CompletableFuture<Boolean> replace(K key, V oldValue, V newValue)
public CompletableFuture<Boolean> replace(K key, long oldVersion, V newValue)
Copyright © 2015. All rights reserved.