Class AtomixConsistentMultimap<K,​V>

  • All Implemented Interfaces:
    org.onosproject.store.service.AsyncConsistentMultimap<K,​V>, org.onosproject.store.service.AsyncIterable<Map.Entry<K,​V>>, org.onosproject.store.service.DistributedPrimitive

    public class AtomixConsistentMultimap<K,​V>
    extends Object
    implements org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
    Atomix consistent map.
    • Constructor Detail

      • AtomixConsistentMultimap

        public AtomixConsistentMultimap​(io.atomix.core.multimap.AsyncAtomicMultimap<K,​V> atomixMultimap)
    • 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.AsyncConsistentMultimap<K,​V>
      • containsKey

        public CompletableFuture<Boolean> containsKey​(K key)
        Specified by:
        containsKey in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • containsValue

        public CompletableFuture<Boolean> containsValue​(V value)
        Specified by:
        containsValue in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • isEmpty

        public CompletableFuture<Boolean> isEmpty()
        Specified by:
        isEmpty in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • containsEntry

        public CompletableFuture<Boolean> containsEntry​(K key,
                                                        V value)
        Specified by:
        containsEntry in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • put

        public CompletableFuture<Boolean> put​(K key,
                                              V value)
        Specified by:
        put in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • putAndGet

        public CompletableFuture<org.onosproject.store.service.Versioned<Collection<? extends V>>> putAndGet​(K key,
                                                                                                             V value)
        Specified by:
        putAndGet in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • remove

        public CompletableFuture<Boolean> remove​(K key,
                                                 V value)
        Specified by:
        remove in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • removeAndGet

        public CompletableFuture<org.onosproject.store.service.Versioned<Collection<? extends V>>> removeAndGet​(K key,
                                                                                                                V value)
        Specified by:
        removeAndGet in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • removeAll

        public CompletableFuture<Boolean> removeAll​(K key,
                                                    Collection<? extends V> values)
        Specified by:
        removeAll in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • removeAll

        public CompletableFuture<org.onosproject.store.service.Versioned<Collection<? extends V>>> removeAll​(K key)
        Specified by:
        removeAll in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • removeAll

        public CompletableFuture<Boolean> removeAll​(Map<K,​Collection<? extends V>> mapping)
        Specified by:
        removeAll in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • putAll

        public CompletableFuture<Boolean> putAll​(K key,
                                                 Collection<? extends V> values)
        Specified by:
        putAll in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • replaceValues

        public CompletableFuture<org.onosproject.store.service.Versioned<Collection<? extends V>>> replaceValues​(K key,
                                                                                                                 Collection<V> values)
        Specified by:
        replaceValues in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • clear

        public CompletableFuture<Void> clear()
        Specified by:
        clear in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • get

        public CompletableFuture<org.onosproject.store.service.Versioned<Collection<? extends V>>> get​(K key)
        Specified by:
        get in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • keySet

        public CompletableFuture<Set<K>> keySet()
        Specified by:
        keySet in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • keys

        public CompletableFuture<com.google.common.collect.Multiset<K>> keys()
        Specified by:
        keys in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • values

        public CompletableFuture<com.google.common.collect.Multiset<V>> values()
        Specified by:
        values in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • iterator

        public CompletableFuture<org.onosproject.store.service.AsyncIterator<Map.Entry<K,​V>>> iterator()
        Specified by:
        iterator in interface org.onosproject.store.service.AsyncIterable<K>
      • addListener

        public CompletableFuture<Void> addListener​(org.onosproject.store.service.MultimapEventListener<K,​V> listener,
                                                   Executor executor)
        Specified by:
        addListener in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • removeListener

        public CompletableFuture<Void> removeListener​(org.onosproject.store.service.MultimapEventListener<K,​V> listener)
        Specified by:
        removeListener in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>