commit | ca335e9366b65ba543189a1fae3b9b32c82e2d72 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Thu Mar 05 10:34:32 2015 -0800 |
committer | Ray Milkey <ray@onlab.us> | Thu Apr 09 18:17:45 2015 +0000 |
tree | 72b400bc7f0dc6ea1ef59d75c086e461f3c80e54 | |
parent | 5c2f813575a6682ca63747784fe35250674f89d5 [diff] [blame] |
Add persistence option to ECMap Work towards ONOS-1337 Change-Id: I24e6a42e2f8856b363e79786829c51344797b81b
diff --git a/core/api/src/main/java/org/onosproject/store/service/EventuallyConsistentMapBuilder.java b/core/api/src/main/java/org/onosproject/store/service/EventuallyConsistentMapBuilder.java index 779c329..75ac27d 100644 --- a/core/api/src/main/java/org/onosproject/store/service/EventuallyConsistentMapBuilder.java +++ b/core/api/src/main/java/org/onosproject/store/service/EventuallyConsistentMapBuilder.java
@@ -166,6 +166,16 @@ public EventuallyConsistentMapBuilder<K, V> withFasterConvergence(); /** + * Configure the map to persist data to disk. + * <p> + * The default behavior is no persistence + * </p> + * + * @return this EventuallyConsistentMapBuilder + */ + public EventuallyConsistentMapBuilder<K, V> withPersistence(); + + /** * Builds an eventually consistent map based on the configuration options * supplied to this builder. *