commit | 82fd63255c8a4e331fd1c170495a86725ed1b659 | [log] [tgz] |
---|---|---|
author | Aaron Kruglikov <aaron.kruglikov@us.fujitsu.com> | Tue Oct 06 12:02:46 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Oct 06 22:31:19 2015 +0000 |
tree | a0af8f570e5b348c2da061642b6507f16df2297f | |
parent | d07c0920252373227907128da6befa5a1e0b8ce2 [diff] |
Adding atomic countetr compare and set method Change-Id: I5cf459e9e09ab1a84ced8160ef61d6a52ea4bea4
diff --git a/core/api/src/test/java/org/onosproject/store/service/TestAtomicCounter.java b/core/api/src/test/java/org/onosproject/store/service/TestAtomicCounter.java index 26a5040..8c577df 100644 --- a/core/api/src/test/java/org/onosproject/store/service/TestAtomicCounter.java +++ b/core/api/src/test/java/org/onosproject/store/service/TestAtomicCounter.java
@@ -53,6 +53,11 @@ } @Override + public boolean compareAndSet(long expectedValue, long updateValue) { + return value.compareAndSet(expectedValue, updateValue); + } + + @Override public long get() { return value.get(); }