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 java.lang.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 java.util.concurrent.CompletableFuture<java.lang.Boolean>add(E element)java.util.concurrent.CompletableFuture<java.lang.Boolean>addAll(java.util.Collection<? extends E> c)java.util.concurrent.CompletableFuture<java.lang.Void>addListener(org.onosproject.store.service.SetEventListener<E> listener)java.util.concurrent.CompletableFuture<java.lang.Void>clear()java.util.concurrent.CompletableFuture<java.lang.Boolean>contains(E element)java.util.concurrent.CompletableFuture<java.lang.Boolean>containsAll(java.util.Collection<? extends E> c)java.util.concurrent.CompletableFuture<? extends java.util.Set<E>>getAsImmutableSet()java.util.concurrent.CompletableFuture<java.lang.Boolean>isEmpty()java.lang.Stringname()java.util.concurrent.CompletableFuture<java.lang.Boolean>remove(E element)java.util.concurrent.CompletableFuture<java.lang.Boolean>removeAll(java.util.Collection<? extends E> c)java.util.concurrent.CompletableFuture<java.lang.Void>removeListener(org.onosproject.store.service.SetEventListener<E> listener)java.util.concurrent.CompletableFuture<java.lang.Boolean>retainAll(java.util.Collection<? extends E> c)java.util.concurrent.CompletableFuture<java.lang.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 java.lang.String name()
- Specified by:
namein interfaceorg.onosproject.store.service.DistributedPrimitive
-
size
public java.util.concurrent.CompletableFuture<java.lang.Integer> size()
- Specified by:
sizein interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
add
public java.util.concurrent.CompletableFuture<java.lang.Boolean> add(E element)
- Specified by:
addin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
remove
public java.util.concurrent.CompletableFuture<java.lang.Boolean> remove(E element)
- Specified by:
removein interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
isEmpty
public java.util.concurrent.CompletableFuture<java.lang.Boolean> isEmpty()
- Specified by:
isEmptyin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
clear
public java.util.concurrent.CompletableFuture<java.lang.Void> clear()
- Specified by:
clearin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
contains
public java.util.concurrent.CompletableFuture<java.lang.Boolean> contains(E element)
- Specified by:
containsin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
addAll
public java.util.concurrent.CompletableFuture<java.lang.Boolean> addAll(java.util.Collection<? extends E> c)
- Specified by:
addAllin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
containsAll
public java.util.concurrent.CompletableFuture<java.lang.Boolean> containsAll(java.util.Collection<? extends E> c)
- Specified by:
containsAllin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
retainAll
public java.util.concurrent.CompletableFuture<java.lang.Boolean> retainAll(java.util.Collection<? extends E> c)
- Specified by:
retainAllin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
removeAll
public java.util.concurrent.CompletableFuture<java.lang.Boolean> removeAll(java.util.Collection<? extends E> c)
- Specified by:
removeAllin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
getAsImmutableSet
public java.util.concurrent.CompletableFuture<? extends java.util.Set<E>> getAsImmutableSet()
- Specified by:
getAsImmutableSetin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
addListener
public java.util.concurrent.CompletableFuture<java.lang.Void> addListener(org.onosproject.store.service.SetEventListener<E> listener)
- Specified by:
addListenerin interfaceorg.onosproject.store.service.AsyncDistributedSet<E>
-
-