Class AtomixConsistentMultimap<K,​V>

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

    public class AtomixConsistentMultimap<K,​V>
    extends java.lang.Object
    implements org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
    Atomix consistent map.
    • 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
      AtomixConsistentMultimap​(io.atomix.core.multimap.AsyncAtomicMultimap<K,​V> atomixMultimap)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<java.lang.Void> addListener​(org.onosproject.store.service.MultimapEventListener<K,​V> listener, java.util.concurrent.Executor executor)  
      java.util.concurrent.CompletableFuture<java.util.Map<K,​java.util.Collection<V>>> asMap()  
      java.util.concurrent.CompletableFuture<java.lang.Void> clear()  
      java.util.concurrent.CompletableFuture<java.lang.Boolean> containsEntry​(K key, V value)  
      java.util.concurrent.CompletableFuture<java.lang.Boolean> containsKey​(K key)  
      java.util.concurrent.CompletableFuture<java.lang.Boolean> containsValue​(V value)  
      java.util.concurrent.CompletableFuture<java.util.Collection<java.util.Map.Entry<K,​V>>> entries()  
      java.util.concurrent.CompletableFuture<org.onosproject.store.service.Versioned<java.util.Collection<? extends V>>> get​(K key)  
      java.util.concurrent.CompletableFuture<java.lang.Boolean> isEmpty()  
      java.util.concurrent.CompletableFuture<org.onosproject.store.service.AsyncIterator<java.util.Map.Entry<K,​V>>> iterator()  
      java.util.concurrent.CompletableFuture<com.google.common.collect.Multiset<K>> keys()  
      java.util.concurrent.CompletableFuture<java.util.Set<K>> keySet()  
      java.lang.String name()  
      java.util.concurrent.CompletableFuture<java.lang.Boolean> put​(K key, V value)  
      java.util.concurrent.CompletableFuture<java.lang.Boolean> putAll​(K key, java.util.Collection<? extends V> values)  
      java.util.concurrent.CompletableFuture<org.onosproject.store.service.Versioned<java.util.Collection<? extends V>>> putAndGet​(K key, V value)  
      java.util.concurrent.CompletableFuture<java.lang.Boolean> remove​(K key, V value)  
      java.util.concurrent.CompletableFuture<org.onosproject.store.service.Versioned<java.util.Collection<? extends V>>> removeAll​(K key)  
      java.util.concurrent.CompletableFuture<java.lang.Boolean> removeAll​(K key, java.util.Collection<? extends V> values)  
      java.util.concurrent.CompletableFuture<org.onosproject.store.service.Versioned<java.util.Collection<? extends V>>> removeAndGet​(K key, V value)  
      java.util.concurrent.CompletableFuture<java.lang.Void> removeListener​(org.onosproject.store.service.MultimapEventListener<K,​V> listener)  
      java.util.concurrent.CompletableFuture<org.onosproject.store.service.Versioned<java.util.Collection<? extends V>>> replaceValues​(K key, java.util.Collection<V> values)  
      java.util.concurrent.CompletableFuture<java.lang.Integer> size()  
      java.util.concurrent.CompletableFuture<com.google.common.collect.Multiset<V>> values()  
      • 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.AsyncConsistentMultimap

        addListener, asMultimap, asMultimap, destroy, primitiveType
      • Methods inherited from interface org.onosproject.store.service.DistributedPrimitive

        addStatusChangeListener, applicationId, removeStatusChangeListener, statusChangeListeners
    • Constructor Detail

      • AtomixConsistentMultimap

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public java.util.concurrent.CompletableFuture<java.util.Collection<java.util.Map.Entry<K,​V>>> entries()
        Specified by:
        entries in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • iterator

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

        public java.util.concurrent.CompletableFuture<java.util.Map<K,​java.util.Collection<V>>> asMap()
        Specified by:
        asMap in interface org.onosproject.store.service.AsyncConsistentMultimap<K,​V>
      • addListener

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

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