| Package | Description |
|---|---|
| org.onosproject.store.service |
Distributed core state management services.
|
| Modifier and Type | Method and Description |
|---|---|
Versioned<V> |
ConsistentMap.compute(K key,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
Attempts to compute a mapping for the specified key and its current mapped value (or
null if there is no current mapping).
|
Versioned<V> |
ConsistentMap.computeIf(K key,
java.util.function.Predicate<? super V> condition,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
If the value for the specified key satisfies a condition, attempts to compute a new
mapping given the key and its current mapped value.
|
Versioned<V> |
ConsistentMap.computeIfAbsent(K key,
java.util.function.Function<? super K,? extends V> mappingFunction)
If the specified key is not already associated with a value (or is mapped to null),
attempts to compute its value using the given mapping function and enters it into
this map unless null.
|
Versioned<V> |
ConsistentMap.computeIfPresent(K key,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
If the value for the specified key is present and non-null, attempts to compute a new
mapping given the key and its current mapped value.
|
Versioned<V> |
ConsistentMap.get(K key)
Returns the value (and version) to which the specified key is mapped, or null if this
map contains no mapping for the key.
|
Versioned<V> |
ConsistentMap.put(K key,
V value)
Associates the specified value with the specified key in this map (optional operation).
|
Versioned<V> |
ConsistentMap.putAndGet(K key,
V value)
Associates the specified value with the specified key in this map (optional operation).
|
Versioned<V> |
ConsistentMap.putIfAbsent(K key,
V value)
If the specified key is not already associated with a value
associates it with the given value and returns null, else returns the current value.
|
Versioned<V> |
ConsistentMap.remove(K key)
Removes the mapping for a key from this map if it is present (optional operation).
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Versioned<V>> |
AsyncConsistentMap.compute(K key,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
Attempts to compute a mapping for the specified key and its current mapped value (or
null if there is no current mapping).
|
CompletableFuture<Versioned<V>> |
AsyncConsistentMap.computeIf(K key,
java.util.function.Predicate<? super V> condition,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
If the value for the specified key satisfies a condition, attempts to compute a new
mapping given the key and its current mapped value.
|
CompletableFuture<Versioned<V>> |
AsyncConsistentMap.computeIfAbsent(K key,
java.util.function.Function<? super K,? extends V> mappingFunction)
If the specified key is not already associated with a value (or is mapped to null),
attempts to compute its value using the given mapping function and enters it into
this map unless null.
|
CompletableFuture<Versioned<V>> |
AsyncConsistentMap.computeIfPresent(K key,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
If the value for the specified key is present and non-null, attempts to compute a new
mapping given the key and its current mapped value.
|
Set<Map.Entry<K,Versioned<V>>> |
ConsistentMap.entrySet()
Returns the set of entries contained in this map.
|
CompletableFuture<Set<Map.Entry<K,Versioned<V>>>> |
AsyncConsistentMap.entrySet()
Returns the set of entries contained in this map.
|
CompletableFuture<Versioned<V>> |
AsyncConsistentMap.get(K key)
Returns the value (and version) to which the specified key is mapped, or null if this
map contains no mapping for the key.
|
CompletableFuture<Versioned<V>> |
AsyncConsistentMap.put(K key,
V value)
Associates the specified value with the specified key in this map (optional operation).
|
CompletableFuture<Versioned<V>> |
AsyncConsistentMap.putAndGet(K key,
V value)
Associates the specified value with the specified key in this map (optional operation).
|
CompletableFuture<Versioned<V>> |
AsyncConsistentMap.putIfAbsent(K key,
V value)
If the specified key is not already associated with a value
associates it with the given value and returns null, else returns the current value.
|
Optional<Versioned<V>> |
ConsistentMap.putIfAbsentAndGet(K key,
V value)
Associates the specified value with the specified key in this map (optional operation).
|
CompletableFuture<Optional<Versioned<V>>> |
AsyncConsistentMap.putIfAbsentAndGet(K key,
V value)
Associates the specified value with the specified key in this map (optional operation).
|
CompletableFuture<Versioned<V>> |
AsyncConsistentMap.remove(K key)
Removes the mapping for a key from this map if it is present (optional operation).
|
Optional<Versioned<V>> |
ConsistentMap.replaceAndGet(K key,
long oldVersion,
V newValue)
Replaces the entry for the specified key only if it is currently mapped to the
specified version.
|
CompletableFuture<Optional<Versioned<V>>> |
AsyncConsistentMap.replaceAndGet(K key,
long oldVersion,
V newValue)
Replaces the entry for the specified key only if it is currently mapped to the
specified version.
|
Collection<Versioned<V>> |
ConsistentMap.values()
Returns the collection of values (and associated versions) contained in this map.
|
CompletableFuture<Collection<Versioned<V>>> |
AsyncConsistentMap.values()
Returns the collection of values (and associated versions) contained in this map.
|
Copyright © 2015. All rights reserved.