public interface DistributedMultimap<K,V> extends SyncPrimitive, com.google.common.collect.Multimap<K,V>
AsyncAtomicMultimap. Instead of returning futures this map
blocks until the future completes then returns the result.DEFAULT_OPERATION_TIMEOUT_MILLIS| Modifier and Type | Method and Description |
|---|---|
default void |
addListener(MultimapEventListener<K,V> listener)
Registers the specified listener to be notified whenever the map is updated.
|
void |
addListener(MultimapEventListener<K,V> listener,
Executor executor)
Registers the specified listener to be notified whenever the map is updated.
|
DistributedMap<K,Collection<V>> |
asMap() |
AsyncDistributedMultimap<K,V> |
async()
Returns the underlying asynchronous primitive.
|
DistributedCollection<Map.Entry<K,V>> |
entries()
Returns a collection of each key-value pair in this map.
|
DistributedMultiset<K> |
keys()
Returns a multiset of the keys present in this multimap with one or more
associated values each.
|
DistributedSet<K> |
keySet()
Returns a set of the keys contained in this multimap with one or more
associated values.
|
void |
removeListener(MultimapEventListener<K,V> listener)
Unregisters the specified listener such that it will no longer
receive map change notifications.
|
DistributedMultiset<V> |
values()
Returns a collection of values in the set with duplicates permitted, the
size of this collection will equal the size of the map at the time of
creation.
|
close, deleteaddStateChangeListener, name, protocol, removeStateChangeListener, typeDistributedSet<K> keySet()
DistributedMultiset<K> keys()
DistributedMultiset<V> values()
DistributedCollection<Map.Entry<K,V>> entries()
DistributedMap<K,Collection<V>> asMap()
default void addListener(MultimapEventListener<K,V> listener)
listener - listener to notify about map eventsvoid addListener(MultimapEventListener<K,V> listener, Executor executor)
listener - listener to notify about map eventsexecutor - executor to use for handling incoming map eventsvoid removeListener(MultimapEventListener<K,V> listener)
listener - listener to unregisterAsyncDistributedMultimap<K,V> async()
SyncPrimitiveasync in interface SyncPrimitiveCopyright © 2013–2018. All rights reserved.