K2 - key type of other mapV2 - value type of other mapK1 - key type of this mapV1 - value type of this mappublic class TranscodingAsyncConsistentMultimap<K1,V1,K2,V2> extends Object implements org.onosproject.store.service.AsyncConsistentMultimap<K1,V1>
AsyncConsistentMultimap that maps its operation to operations to
a differently typed AsyncConsistentMultimap by transcoding operation
inputs and outputs while maintaining version numbers.| Constructor and Description |
|---|
TranscodingAsyncConsistentMultimap(org.onosproject.store.service.AsyncConsistentMultimap<K2,V2> backingMap,
Function<K1,K2> keyEncoder,
Function<K2,K1> keyDecoder,
Function<V2,V1> valueDecoder,
Function<V1,V2> valueEncoder) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic CompletableFuture<Integer> size()
public CompletableFuture<Boolean> isEmpty()
public CompletableFuture<Boolean> containsKey(K1 key)
public CompletableFuture<Boolean> containsValue(V1 value)
public CompletableFuture<Boolean> containsEntry(K1 key, V1 value)
public CompletableFuture<Boolean> put(K1 key, V1 value)
public CompletableFuture<Boolean> remove(K1 key, V1 value)
public CompletableFuture<Boolean> removeAll(K1 key, Collection<? extends V1> values)
public CompletableFuture<org.onosproject.store.service.Versioned<Collection<? extends V1>>> removeAll(K1 key)
public CompletableFuture<Boolean> putAll(K1 key, Collection<? extends V1> values)
public CompletableFuture<org.onosproject.store.service.Versioned<Collection<? extends V1>>> replaceValues(K1 key, Collection<V1> values)
public CompletableFuture<Void> clear()
public CompletableFuture<org.onosproject.store.service.Versioned<Collection<? extends V1>>> get(K1 key)
public CompletableFuture<Set<K1>> keySet()
public CompletableFuture<com.google.common.collect.Multiset<K1>> keys()
public CompletableFuture<com.google.common.collect.Multiset<V1>> values()
public CompletableFuture<Collection<Map.Entry<K1,V1>>> entries()
public CompletableFuture<Map<K1,Collection<V1>>> asMap()
public String name()
name in interface org.onosproject.store.service.DistributedPrimitivepublic void addStatusChangeListener(Consumer<org.onosproject.store.service.DistributedPrimitive.Status> listener)
addStatusChangeListener in interface org.onosproject.store.service.DistributedPrimitivepublic void removeStatusChangeListener(Consumer<org.onosproject.store.service.DistributedPrimitive.Status> listener)
removeStatusChangeListener in interface org.onosproject.store.service.DistributedPrimitivepublic Collection<Consumer<org.onosproject.store.service.DistributedPrimitive.Status>> statusChangeListeners()
statusChangeListeners in interface org.onosproject.store.service.DistributedPrimitive