Initializer |
AsyncMap(AsyncMap<out Object,out Object> unknown) |
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
clear | shared default void clear(Anything(Throwable?) resultHandler) Clear all entries in the map Parameters:
|
get | shared default void get(K k, Anything(Throwable|V) resultHandler) Get a value from the map, asynchronously. Parameters:
|
put | shared default void put(K k, V v, Anything(Throwable?) completionHandler) Put a value in the map, asynchronously. Parameters:
|
put | shared default void put(K k, V v, Integer ttl, Anything(Throwable?) completionHandler) Like put but specifying a time to live for the entry. Entry will expire and get evicted after the ttl. Parameters:
|
putIfAbsent | shared default void putIfAbsent(K k, V v, Anything(Throwable|V) completionHandler) 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. Parameters:
|
putIfAbsent | shared default void putIfAbsent(K k, V v, Integer ttl, Anything(Throwable|V) completionHandler) Link putIfAbsent but specifying a time to live for the entry. Entry will expire and get evicted after the ttl. Parameters:
|
remove | shared default void remove(K k, Anything(Throwable|V) resultHandler) Remove a value from the map, asynchronously. Parameters:
|
removeIfPresent | shared default void removeIfPresent(K k, V v, Anything(Throwable|Boolean) resultHandler) Remove a value from the map, only if entry already exists with same value. Parameters:
|
replace | shared default void replace(K k, V v, Anything(Throwable|V) resultHandler) Replace the entry only if it is currently mapped to some value Parameters:
|
replaceIfPresent | shared default void replaceIfPresent(K k, V oldValue, V newValue, Anything(Throwable|Boolean) resultHandler) Replace the entry only if it is currently mapped to a specific value Parameters:
|
size | shared default void size(Anything(Throwable|Integer) resultHandler) Provide the number of entries in the map Parameters:
|
Inherited Methods |
Methods inherited from: Object equals |