Packages

class AsyncMap[K, V] extends AnyRef

An asynchronous map.

io.vertx.scala.core.shareddata.AsyncMap does not allow null to be used as a key or value.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncMap
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AsyncMap(_asJava: AnyRef)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[K], arg1: scala.reflect.api.JavaUniverse.TypeTag[V])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asJava: AnyRef
  6. def clear(resultHandler: Handler[AsyncResult[Unit]]): Unit

    Clear all entries in the map * @param resultHandler called on completion

  7. def clearFuture(): scala.concurrent.Future[Unit]

    Like clear but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def get(k: K, resultHandler: Handler[AsyncResult[Option[V]]]): Unit

    Get a value from the map, asynchronously.

    Get a value from the map, asynchronously. * @param k the key

    resultHandler

    - this will be called some time later with the async result.

  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getFuture(k: K): scala.concurrent.Future[Option[V]]

    Like get but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def put(k: K, v: V, ttl: Long, completionHandler: Handler[AsyncResult[Unit]]): Unit

    Like io.vertx.scala.core.shareddata.AsyncMap#put but specifying a time to live for the entry.

    Like io.vertx.scala.core.shareddata.AsyncMap#put but specifying a time to live for the entry. Entry will expire and get evicted after the ttl. * @param k the key

    v

    the value

    ttl

    The time to live (in ms) for the entry

    completionHandler

    the handler

  21. def put(k: K, v: V, completionHandler: Handler[AsyncResult[Unit]]): Unit

    Put a value in the map, asynchronously.

    Put a value in the map, asynchronously. * @param k the key

    v

    the value

    completionHandler

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

  22. def putFuture(k: K, v: V, ttl: Long): scala.concurrent.Future[Unit]

    Like put but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  23. def putFuture(k: K, v: V): scala.concurrent.Future[Unit]

    Like put but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  24. def putIfAbsent(k: K, v: V, ttl: Long, completionHandler: Handler[AsyncResult[Option[V]]]): Unit

    Link io.vertx.scala.core.shareddata.AsyncMap#putIfAbsent but specifying a time to live for the entry.

    Link io.vertx.scala.core.shareddata.AsyncMap#putIfAbsent but specifying a time to live for the entry. Entry will expire and get evicted after the ttl. * @param k the key

    v

    the value

    ttl

    The time to live (in ms) for the entry

    completionHandler

    the handler

  25. def putIfAbsent(k: K, v: V, completionHandler: Handler[AsyncResult[Option[V]]]): Unit

    Put the entry only if there is no entry with the key already present.

    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. * @param k the key

    v

    the value

    completionHandler

    the handler

  26. def putIfAbsentFuture(k: K, v: V, ttl: Long): scala.concurrent.Future[Option[V]]

    Like putIfAbsent but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  27. def putIfAbsentFuture(k: K, v: V): scala.concurrent.Future[Option[V]]

    Like putIfAbsent but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  28. def remove(k: K, resultHandler: Handler[AsyncResult[Option[V]]]): Unit

    Remove a value from the map, asynchronously.

    Remove a value from the map, asynchronously. * @param k the key

    resultHandler

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

  29. def removeFuture(k: K): scala.concurrent.Future[Option[V]]

    Like remove but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  30. def removeIfPresent(k: K, v: V, resultHandler: Handler[AsyncResult[Boolean]]): Unit

    Remove a value from the map, only if entry already exists with same value.

    Remove a value from the map, only if entry already exists with same value. * @param k the key

    v

    the value

    resultHandler

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

  31. def removeIfPresentFuture(k: K, v: V): scala.concurrent.Future[Boolean]

    Like removeIfPresent but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  32. def replace(k: K, v: V, resultHandler: Handler[AsyncResult[Option[V]]]): Unit

    Replace the entry only if it is currently mapped to some value * @param k the key

    Replace the entry only if it is currently mapped to some value * @param k the key

    v

    the new value

    resultHandler

    the result handler will be passed the previous value

  33. def replaceFuture(k: K, v: V): scala.concurrent.Future[Option[V]]

    Like replace but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  34. def replaceIfPresent(k: K, oldValue: V, newValue: V, resultHandler: Handler[AsyncResult[Boolean]]): Unit

    Replace the entry only if it is currently mapped to a specific value * @param k the key

    Replace the entry only if it is currently mapped to a specific value * @param k the key

    oldValue

    the existing value

    newValue

    the new value

    resultHandler

    the result handler

  35. def replaceIfPresentFuture(k: K, oldValue: V, newValue: V): scala.concurrent.Future[Boolean]

    Like replaceIfPresent but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  36. def size(resultHandler: Handler[AsyncResult[Int]]): Unit

    Provide the number of entries in the map * @param resultHandler handler which will receive the number of entries

  37. def sizeFuture(): scala.concurrent.Future[Int]

    Like size but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped