Class 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 Detail

      • AtomixDistributedSet

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

      • name

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

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

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

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

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

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

        public CompletableFuture<Boolean> contains​(E element)
        Specified by:
        contains in interface org.onosproject.store.service.AsyncDistributedSet<E>
      • containsAll

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

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

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

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

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

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