Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.onosproject.store.service.DistributedPrimitive

        org.onosproject.store.service.DistributedPrimitive.Status, org.onosproject.store.service.DistributedPrimitive.Type
    • Field Summary

      • Fields inherited from interface org.onosproject.store.service.DistributedPrimitive

        DEFAULT_OPERATION_TIMEOUT_MILLIS
    • 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.String name()  
      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
      • Methods inherited from interface org.onosproject.store.service.AsyncDistributedSet

        asDistributedSet, asDistributedSet, primitiveType
      • Methods inherited from interface org.onosproject.store.service.DistributedPrimitive

        addStatusChangeListener, applicationId, destroy, removeStatusChangeListener, statusChangeListeners
    • Constructor Detail

      • AtomixDistributedSet

        public AtomixDistributedSet​(io.atomix.core.set.AsyncDistributedSet<E> atomixSet)
    • Method Detail

      • name

        public java.lang.String name()
        Specified by:
        name in interface org.onosproject.store.service.DistributedPrimitive
      • size

        public java.util.concurrent.CompletableFuture<java.lang.Integer> size()
        Specified by:
        size in interface org.onosproject.store.service.AsyncDistributedSet<E>
      • add

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> add​(E element)
        Specified by:
        add in interface org.onosproject.store.service.AsyncDistributedSet<E>
      • remove

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> remove​(E element)
        Specified by:
        remove in interface org.onosproject.store.service.AsyncDistributedSet<E>
      • isEmpty

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> isEmpty()
        Specified by:
        isEmpty in interface org.onosproject.store.service.AsyncDistributedSet<E>
      • clear

        public java.util.concurrent.CompletableFuture<java.lang.Void> clear()
        Specified by:
        clear in interface org.onosproject.store.service.AsyncDistributedSet<E>
      • contains

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> contains​(E element)
        Specified by:
        contains in interface org.onosproject.store.service.AsyncDistributedSet<E>
      • addAll

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> addAll​(java.util.Collection<? extends E> c)
        Specified by:
        addAll in interface org.onosproject.store.service.AsyncDistributedSet<E>
      • containsAll

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> containsAll​(java.util.Collection<? extends E> c)
        Specified by:
        containsAll in interface org.onosproject.store.service.AsyncDistributedSet<E>
      • retainAll

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> retainAll​(java.util.Collection<? extends E> c)
        Specified by:
        retainAll in interface org.onosproject.store.service.AsyncDistributedSet<E>
      • removeAll

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> removeAll​(java.util.Collection<? extends E> c)
        Specified by:
        removeAll in interface org.onosproject.store.service.AsyncDistributedSet<E>
      • getAsImmutableSet

        public java.util.concurrent.CompletableFuture<? extends java.util.Set<E>> getAsImmutableSet()
        Specified by:
        getAsImmutableSet in interface org.onosproject.store.service.AsyncDistributedSet<E>
      • addListener

        public java.util.concurrent.CompletableFuture<java.lang.Void> addListener​(org.onosproject.store.service.SetEventListener<E> listener)
        Specified by:
        addListener in interface org.onosproject.store.service.AsyncDistributedSet<E>
      • removeListener

        public java.util.concurrent.CompletableFuture<java.lang.Void> removeListener​(org.onosproject.store.service.SetEventListener<E> listener)
        Specified by:
        removeListener in interface org.onosproject.store.service.AsyncDistributedSet<E>