vertx / io.vertx.reactivex.core.shareddata / AsyncMap / put

put

open fun put(k: K, v: V, completionHandler: Handler<AsyncResult<Void>>): Unit

Put a value in the map, asynchronously.

Parameters

k - the key

v - the value

completionHandler - - this will be called some time later to signify the value has been put

open fun put(k: K, v: V, ttl: Long, completionHandler: Handler<AsyncResult<Void>>): Unit

Like io.vertx.reactivex.core.shareddata.AsyncMap#put but specifying a time to live for the entry. Entry will expire and get evicted after the ttl.

Parameters

k - the key

v - the value

ttl - The time to live (in ms) for the entry

completionHandler - the handler