public class ExecutingAsyncConsistentTreeMap<V> extends ExecutingDistributedPrimitive implements org.onosproject.store.service.AsyncConsistentTreeMap<V>
AsyncConsistentTreeMap that executes asynchronous callbacks on a provided
Executor.| Constructor and Description |
|---|
ExecutingAsyncConsistentTreeMap(org.onosproject.store.service.AsyncConsistentTreeMap<V> delegateMap,
Executor orderedExecutor,
Executor threadPoolExecutor) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
addListener(org.onosproject.store.service.MapEventListener<String,V> listener) |
CompletableFuture<Void> |
addListener(org.onosproject.store.service.MapEventListener<String,V> listener,
Executor executor) |
CompletableFuture<org.onosproject.store.service.Version> |
begin(org.onosproject.store.primitives.TransactionId transactionId) |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> |
ceilingEntry(String key) |
CompletableFuture<String> |
ceilingKey(String key) |
CompletableFuture<Void> |
clear() |
CompletableFuture<Void> |
commit(org.onosproject.store.primitives.TransactionId transactionId) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
computeIf(String key,
Predicate<? super V> condition,
BiFunction<? super String,? super V,? extends V> remappingFunction) |
CompletableFuture<Boolean> |
containsKey(String key) |
CompletableFuture<Boolean> |
containsValue(V value) |
CompletableFuture<Set<Map.Entry<String,org.onosproject.store.service.Versioned<V>>>> |
entrySet() |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> |
firstEntry() |
CompletableFuture<String> |
firstKey() |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> |
floorEntry(String key) |
CompletableFuture<String> |
floorKey(String key) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
get(String key) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
getOrDefault(String key,
V defaultValue) |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> |
higherEntry(String key) |
CompletableFuture<String> |
higherKey(String key) |
CompletableFuture<Set<String>> |
keySet() |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> |
lastEntry() |
CompletableFuture<String> |
lastKey() |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> |
lowerEntry(String key) |
CompletableFuture<String> |
lowerKey(String key) |
CompletableFuture<NavigableSet<String>> |
navigableKeySet() |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> |
pollFirstEntry() |
CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> |
pollLastEntry() |
CompletableFuture<Boolean> |
prepare(org.onosproject.store.service.TransactionLog<org.onosproject.store.primitives.MapUpdate<String,V>> transactionLog) |
CompletableFuture<Boolean> |
prepareAndCommit(org.onosproject.store.service.TransactionLog<org.onosproject.store.primitives.MapUpdate<String,V>> transactionLog) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
put(String key,
V value) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
putAndGet(String key,
V value) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
putIfAbsent(String key,
V value) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
remove(String key) |
CompletableFuture<Boolean> |
remove(String key,
long version) |
CompletableFuture<Boolean> |
remove(String key,
V value) |
CompletableFuture<Void> |
removeListener(org.onosproject.store.service.MapEventListener<String,V> listener) |
CompletableFuture<Boolean> |
replace(String key,
long oldVersion,
V newValue) |
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
replace(String key,
V value) |
CompletableFuture<Boolean> |
replace(String key,
V oldValue,
V newValue) |
CompletableFuture<Void> |
rollback(org.onosproject.store.primitives.TransactionId transactionId) |
CompletableFuture<Integer> |
size() |
CompletableFuture<NavigableMap<String,V>> |
subMap(String upperKey,
String lowerKey,
boolean inclusiveUpper,
boolean inclusiveLower) |
CompletableFuture<Collection<org.onosproject.store.service.Versioned<V>>> |
values() |
addStatusChangeListener, asyncFuture, destroy, removeStatusChangeListenerapplicationId, equals, hashCode, name, primitiveType, statusChangeListeners, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasTreeMap, asTreeMappublic CompletableFuture<String> firstKey()
firstKey in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<String> lastKey()
lastKey in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> ceilingEntry(String key)
ceilingEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> floorEntry(String key)
floorEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> higherEntry(String key)
higherEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> lowerEntry(String key)
lowerEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> firstEntry()
firstEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<Integer> size()
public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> lastEntry()
lastEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> pollFirstEntry()
pollFirstEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<Boolean> containsKey(String key)
public CompletableFuture<Map.Entry<String,org.onosproject.store.service.Versioned<V>>> pollLastEntry()
pollLastEntry in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<String> lowerKey(String key)
lowerKey in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<Boolean> containsValue(V value)
public CompletableFuture<String> floorKey(String key)
floorKey in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<String> ceilingKey(String key)
ceilingKey in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<org.onosproject.store.service.Versioned<V>> get(String key)
public CompletableFuture<org.onosproject.store.service.Versioned<V>> getOrDefault(String key, V defaultValue)
public CompletableFuture<String> higherKey(String key)
higherKey in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<NavigableSet<String>> navigableKeySet()
navigableKeySet in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<NavigableMap<String,V>> subMap(String upperKey, String lowerKey, boolean inclusiveUpper, boolean inclusiveLower)
subMap in interface org.onosproject.store.service.AsyncConsistentTreeMap<V>public CompletableFuture<org.onosproject.store.service.Versioned<V>> computeIf(String key, Predicate<? super V> condition, BiFunction<? super String,? super V,? extends V> remappingFunction)
public CompletableFuture<org.onosproject.store.service.Versioned<V>> put(String key, V value)
public CompletableFuture<org.onosproject.store.service.Versioned<V>> putAndGet(String key, V value)
public CompletableFuture<org.onosproject.store.service.Versioned<V>> remove(String key)
public CompletableFuture<Void> clear()
public CompletableFuture<Set<String>> keySet()
public CompletableFuture<Collection<org.onosproject.store.service.Versioned<V>>> values()
public CompletableFuture<Set<Map.Entry<String,org.onosproject.store.service.Versioned<V>>>> entrySet()
public CompletableFuture<org.onosproject.store.service.Versioned<V>> putIfAbsent(String key, V value)
public CompletableFuture<Boolean> remove(String key, V value)
public CompletableFuture<Boolean> remove(String key, long version)
public CompletableFuture<org.onosproject.store.service.Versioned<V>> replace(String key, V value)
public CompletableFuture<Boolean> replace(String key, V oldValue, V newValue)
public CompletableFuture<Boolean> replace(String key, long oldVersion, V newValue)
public CompletableFuture<org.onosproject.store.service.Version> begin(org.onosproject.store.primitives.TransactionId transactionId)
public CompletableFuture<Boolean> prepare(org.onosproject.store.service.TransactionLog<org.onosproject.store.primitives.MapUpdate<String,V>> transactionLog)
public CompletableFuture<Void> commit(org.onosproject.store.primitives.TransactionId transactionId)
public CompletableFuture<Void> rollback(org.onosproject.store.primitives.TransactionId transactionId)
public CompletableFuture<Boolean> prepareAndCommit(org.onosproject.store.service.TransactionLog<org.onosproject.store.primitives.MapUpdate<String,V>> transactionLog)
public CompletableFuture<Void> addListener(org.onosproject.store.service.MapEventListener<String,V> listener)
public CompletableFuture<Void> addListener(org.onosproject.store.service.MapEventListener<String,V> listener, Executor executor)