ConcurrentMultiMap

org.apache.pekko.util.ConcurrentMultiMap
class ConcurrentMultiMap[K, V](mapSize: Int, valueComparator: Comparator[V]) extends Index[K, V]

An implementation of a ConcurrentMultiMap Adds/remove is serialized over the specified key Reads are fully concurrent <-- el-cheapo

Attributes

Source
Index.scala
Graph
Supertypes
class Index[K, V]
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

def clear(): Unit

Removes all keys and all values

Removes all keys and all values

Attributes

Inherited from:
Index
Source
Index.scala
def findValue(key: K)(f: V => Boolean): Option[V]

Attributes

Returns

Some(value) for the first matching value where the supplied function returns true for the given key, if no matches it returns None

Inherited from:
Index
Source
Index.scala
def foreach(fun: (K, V) => Unit): Unit

Applies the supplied function to all keys and their values

Applies the supplied function to all keys and their values

Attributes

Inherited from:
Index
Source
Index.scala

Attributes

Returns

true if the underlying containers is empty, may report false negatives when the last remove is underway

Inherited from:
Index
Source
Index.scala
def keys: Iterable[K]

Returns the key set.

Returns the key set.

Attributes

Inherited from:
Index
Source
Index.scala
def put(key: K, value: V): Boolean

Associates the value of type V with the key of type K

Associates the value of type V with the key of type K

Attributes

Returns

true if the value didn't exist for the key previously, and false otherwise

Inherited from:
Index
Source
Index.scala
def remove(key: K): Option[Iterable[V]]

Disassociates all the values for the specified key

Disassociates all the values for the specified key

Attributes

Returns

None if the key wasn't associated at all, or Some(scala.Iterable[V]) if it was associated

Inherited from:
Index
Source
Index.scala
def remove(key: K, value: V): Boolean

Disassociates the value of type V from the key of type K

Disassociates the value of type V from the key of type K

Attributes

Returns

true if the value was disassociated from the key and false if it wasn't previously associated with the key

Inherited from:
Index
Source
Index.scala
def removeValue(value: V): Unit

Removes the specified value from all keys

Removes the specified value from all keys

Attributes

Inherited from:
Index
Source
Index.scala
def valueIterator(key: K): Iterator[V]

Returns an Iterator of V containing the values for the supplied key, or an empty iterator if the key doesn't exist

Returns an Iterator of V containing the values for the supplied key, or an empty iterator if the key doesn't exist

Attributes

Inherited from:
Index
Source
Index.scala
def values: Set[V]

Returns the union of all value sets.

Returns the union of all value sets.

Attributes

Inherited from:
Index
Source
Index.scala