K - key typeV - value typepublic class AsyncCachingConsistentMap<K,V> extends DefaultAsyncConsistentMap<K,V>
DefaultAsyncConsistentMap that provides a weaker read consistency
guarantee in return for better read performance.
For read/write operations that are local to a node this map implementation provides guarantees similar to a ConsistentMap. However for read/write operations executed across multiple nodes this implementation only provides eventual consistency.
| Constructor and Description |
|---|
AsyncCachingConsistentMap(String name,
org.onosproject.core.ApplicationId applicationId,
Database database,
org.onosproject.store.service.Serializer serializer,
boolean readOnly,
boolean purgeOnUninstall,
boolean meteringEnabled) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeUpdate(K key)
Pre-update hook for performing required checks/actions before going forward with an update operation.
|
CompletableFuture<org.onosproject.store.service.Versioned<V>> |
get(K key) |
addListener, applicationId, clear, compute, computeIf, computeIfAbsent, computeIfPresent, containsKey, containsValue, dK, entrySet, isEmpty, keySet, name, notifyListeners, purgeOnUninstall, put, putAndGet, putIfAbsent, remove, remove, remove, removeListener, replace, replace, serializer, size, sK, valuespublic CompletableFuture<org.onosproject.store.service.Versioned<V>> get(K key)
protected void beforeUpdate(K key)
DefaultAsyncConsistentMapbeforeUpdate in class DefaultAsyncConsistentMap<K,V>key - map key.Copyright © 2015. All rights reserved.