commit | fd912ac7a596e1522d531d49c02a9772e2b73782 | [log] [tgz] |
---|---|---|
author | andrea <andrea@onlab.us> | Fri Oct 02 14:58:35 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Oct 02 22:18:14 2015 +0000 |
tree | 5ebd26b628fcc91c37f871dd076628efd0ab44e2 | |
parent | 5f1fa014f44d77684898d27b3728259722056fb2 [diff] [blame] |
minor name changes and javadoc Change-Id: I43a05d75392efad9ac004867027a31adcc18c6f5
diff --git a/core/api/src/main/java/org/onosproject/store/service/AtomicCounter.java b/core/api/src/main/java/org/onosproject/store/service/AtomicCounter.java index f620e08..051838a 100644 --- a/core/api/src/main/java/org/onosproject/store/service/AtomicCounter.java +++ b/core/api/src/main/java/org/onosproject/store/service/AtomicCounter.java
@@ -51,6 +51,14 @@ long addAndGet(long delta); /** + * Atomically sets the given value to the current value. + * + * @param value the value to set + */ + void set(long value); + + + /** * Returns the current value of the counter without modifying it. * * @return current value