Class AtomixAtomicValue<V>
- java.lang.Object
-
- org.onosproject.store.atomix.primitives.impl.AtomixAtomicValue<V>
-
- All Implemented Interfaces:
org.onosproject.store.service.AsyncAtomicValue<V>,org.onosproject.store.service.DistributedPrimitive
public class AtomixAtomicValue<V> extends Object implements org.onosproject.store.service.AsyncAtomicValue<V>
Atomix atomic value.
-
-
Constructor Summary
Constructors Constructor Description AtomixAtomicValue(io.atomix.core.value.AsyncAtomicValue<V> atomixValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>addListener(org.onosproject.store.service.AtomicValueEventListener<V> listener)CompletableFuture<Boolean>compareAndSet(V expect, V update)CompletableFuture<Void>destroy()CompletableFuture<V>get()CompletableFuture<V>getAndSet(V value)Stringname()CompletableFuture<Void>removeListener(org.onosproject.store.service.AtomicValueEventListener<V> listener)CompletableFuture<Void>set(V value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
AtomixAtomicValue
public AtomixAtomicValue(io.atomix.core.value.AsyncAtomicValue<V> atomixValue)
-
-
Method Detail
-
name
public String name()
- Specified by:
namein interfaceorg.onosproject.store.service.DistributedPrimitive
-
compareAndSet
public CompletableFuture<Boolean> compareAndSet(V expect, V update)
- Specified by:
compareAndSetin interfaceorg.onosproject.store.service.AsyncAtomicValue<V>
-
get
public CompletableFuture<V> get()
- Specified by:
getin interfaceorg.onosproject.store.service.AsyncAtomicValue<V>
-
getAndSet
public CompletableFuture<V> getAndSet(V value)
- Specified by:
getAndSetin interfaceorg.onosproject.store.service.AsyncAtomicValue<V>
-
set
public CompletableFuture<Void> set(V value)
- Specified by:
setin interfaceorg.onosproject.store.service.AsyncAtomicValue<V>
-
addListener
public CompletableFuture<Void> addListener(org.onosproject.store.service.AtomicValueEventListener<V> listener)
- Specified by:
addListenerin interfaceorg.onosproject.store.service.AsyncAtomicValue<V>
-
removeListener
public CompletableFuture<Void> removeListener(org.onosproject.store.service.AtomicValueEventListener<V> listener)
- Specified by:
removeListenerin interfaceorg.onosproject.store.service.AsyncAtomicValue<V>
-
destroy
public CompletableFuture<Void> destroy()
- Specified by:
destroyin interfaceorg.onosproject.store.service.DistributedPrimitive
-
-