Class AtomixDistributedSet<E>
- java.lang.Object
-
- org.onosproject.store.atomix.primitives.impl.AtomixDistributedSet<E>
-
- All Implemented Interfaces:
org.onosproject.store.service.AsyncDistributedSet<E>,org.onosproject.store.service.DistributedPrimitive
public class AtomixDistributedSet<E> extends Object implements org.onosproject.store.service.AsyncDistributedSet<E>
Atomix distributed set.
-
-
Constructor Summary
Constructors Constructor Description AtomixDistributedSet(io.atomix.core.set.AsyncDistributedSet<E> atomixSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Boolean>add(E element)CompletableFuture<Boolean>addAll(Collection<? extends E> c)CompletableFuture<Void>addListener(org.onosproject.store.service.SetEventListener<E> listener)CompletableFuture<Void>clear()CompletableFuture<Boolean>contains(E element)CompletableFuture<Boolean>containsAll(Collection<? extends E> c)CompletableFuture<? extends Set<E>>getAsImmutableSet()CompletableFuture<Boolean>isEmpty()Stringname()CompletableFuture<Boolean>remove(E element)CompletableFuture<Boolean>removeAll(Collection<? extends E> c)CompletableFuture<Void>removeListener(org.onosproject.store.service.SetEventListener<E> listener)CompletableFuture<Boolean>retainAll(Collection<? extends E> c)CompletableFuture<Integer>size()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
AtomixDistributedSet
public AtomixDistributedSet(io.atomix.core.set.AsyncDistributedSet<E> atomixSet)
-
-
Method Detail
-
name
public String name()
- Specified by:
namein interfaceorg.onosproject.store.service.DistributedPrimitive
-
size
public CompletableFuture<Integer> size()
- Specified by:
sizein interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
add
public CompletableFuture<Boolean> add(E element)
- Specified by:
addin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
remove
public CompletableFuture<Boolean> remove(E element)
- Specified by:
removein interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
isEmpty
public CompletableFuture<Boolean> isEmpty()
- Specified by:
isEmptyin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
clear
public CompletableFuture<Void> clear()
- Specified by:
clearin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
contains
public CompletableFuture<Boolean> contains(E element)
- Specified by:
containsin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
addAll
public CompletableFuture<Boolean> addAll(Collection<? extends E> c)
- Specified by:
addAllin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
containsAll
public CompletableFuture<Boolean> containsAll(Collection<? extends E> c)
- Specified by:
containsAllin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
retainAll
public CompletableFuture<Boolean> retainAll(Collection<? extends E> c)
- Specified by:
retainAllin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
removeAll
public CompletableFuture<Boolean> removeAll(Collection<? extends E> c)
- Specified by:
removeAllin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
getAsImmutableSet
public CompletableFuture<? extends Set<E>> getAsImmutableSet()
- Specified by:
getAsImmutableSetin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
addListener
public CompletableFuture<Void> addListener(org.onosproject.store.service.SetEventListener<E> listener)
- Specified by:
addListenerin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
removeListener
public CompletableFuture<Void> removeListener(org.onosproject.store.service.SetEventListener<E> listener)
- Specified by:
removeListenerin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
-