-
Type:
Story
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.11.0
-
Component/s: None
-
Labels:
-
Story Points:5
-
Epic Link:
-
Sprint:L Sprint #3 - Virtual Net
The containsKey method of ConsisentMap is not implemented in CachingAsyncConsistentMap. That will indeed cause it make a remote call for containsKey, which would consume a lot of time. We shoud make read operations from the local cache.
For DistributedVirtualNetworkStore it should include:
V get(Object key);
boolean containsKey(Object key);
Other read operation could also be implemented in CachingAsyncConsistentMap:
boolean containsValue(Object value);
boolean isEmpty();
int size();
Set<K> keySet();
Collection<V> values();
Set<Map.Entry<K, V>> entrySet();