suspend fun <K, V> AsyncMap<K, V>.clearAwait(): Unit
Clear all entries in the map |
|
suspend fun <K, V> AsyncMap<K, V>.getAwait(: K): V?
Get a value from the map, asynchronously. |
|
suspend fun <K, V> AsyncMap<K, V>.putAwait(: K, : V): Unit
Put a value in the map, asynchronously. suspend fun <K, V> AsyncMap<K, V>.putAwait(: K, : V, : Long): Unit
Like io.vertx.core.shareddata.AsyncMap but specifying a time to live for the entry. Entry will expire and get evicted after the ttl. |
|
suspend fun <K, V> AsyncMap<K, V>.putIfAbsentAwait(: K, : V): V?
Put the entry only if there is no entry with the key already present. If key already present then the existing value will be returned to the handler, otherwise null. suspend fun <K, V> AsyncMap<K, V>.putIfAbsentAwait(: K, : V, : Long): V?
Link io.vertx.core.shareddata.AsyncMap but specifying a time to live for the entry. Entry will expire and get evicted after the ttl. |
|
suspend fun <K, V> AsyncMap<K, V>.removeAwait(: K): V?
Remove a value from the map, asynchronously. |
|
suspend fun <K, V> AsyncMap<K, V>.removeIfPresentAwait(: K, : V): Boolean
Remove a value from the map, only if entry already exists with same value. |
|
suspend fun <K, V> AsyncMap<K, V>.replaceAwait(: K, : V): V?
Replace the entry only if it is currently mapped to some value |
|
suspend fun <K, V> AsyncMap<K, V>.replaceIfPresentAwait(: K, : V, : V): Boolean
Replace the entry only if it is currently mapped to a specific value |
|
suspend fun <K, V> AsyncMap<K, V>.sizeAwait(): Int
Provide the number of entries in the map |