ConcurrentMap

class ConcurrentMap<Key : Any, Value : Any>(lock: Lock, initialCapacity: Int) : MutableMap<Key, Value>

Ktor concurrent map implementation. Please do not use it.

Constructors

Link copied to clipboard
fun <Key : Any, Value : Any> ConcurrentMap(lock: Lock, map: Map<Key, Value>)
Link copied to clipboard
fun ConcurrentMap(lock: Lock = Lock(), initialCapacity: Int = INITIAL_CAPACITY)

Functions

Link copied to clipboard
open override fun clear()
Link copied to clipboard
fun computeIfAbsent(key: Key, block: () -> Value): Value

Computes block and inserts result in map. The block will be evaluated at most once.

Link copied to clipboard
open override fun containsKey(key: Key): Boolean
Link copied to clipboard
open override fun containsValue(value: Value): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(key: Key): Value?
Link copied to clipboard
fun getOrDefault(key: Key, block: () -> Value): Value

Perform concurrent insert.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open override fun put(key: Key, value: Value): Value?
Link copied to clipboard
open override fun putAll(from: Map<out Key, Value>)
Link copied to clipboard
open override fun remove(key: Key): Value?
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
open override val entries: MutableSet<MutableMap.MutableEntry<Key, Value>>
Link copied to clipboard
open override val keys: MutableSet<Key>
Link copied to clipboard
open override val size: Int
Link copied to clipboard
open override val values: MutableCollection<Value>