[Falcon][ONOS-2696] support method "replace" in ConsistentMap and method "notNull" in Match
Change-Id: I7c7d4644f963e52297785c2f9a5f21eff8723e61
diff --git a/core/api/src/main/java/org/onosproject/store/service/AsyncConsistentMap.java b/core/api/src/main/java/org/onosproject/store/service/AsyncConsistentMap.java
index fee8cfa..5e54eec 100644
--- a/core/api/src/main/java/org/onosproject/store/service/AsyncConsistentMap.java
+++ b/core/api/src/main/java/org/onosproject/store/service/AsyncConsistentMap.java
@@ -245,6 +245,16 @@
CompletableFuture<Boolean> remove(K key, long version);
/**
+ * Replaces the entry for the specified key only if there is any value
+ * which associated with specified key.
+ *
+ * @param key key with which the specified value is associated
+ * @param value value expected to be associated with the specified key
+ * @return the previous value associated with the specified key or null
+ */
+ CompletableFuture<Versioned<V>> replace(K key, V value);
+
+ /**
* Replaces the entry for the specified key only if currently mapped
* to the specified value.
*