Packages

c

akka.util

MessageBufferMap

final class MessageBufferMap[I] extends AnyRef

A non thread safe mutable message buffer map that can be used to buffer messages inside actors.

I

(Id type)

Source
MessageBuffer.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MessageBufferMap
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MessageBufferMap()

Value Members

  1. def add(id: I): Unit

    Add an id to the buffer map

  2. def append(id: I, message: Any, ref: ActorRef): Unit

    Append an element to the buffer for an id.

    Append an element to the buffer for an id.

    id

    the id to add the element to

    message

    the message to buffer

    ref

    the actor to buffer

  3. def contains(id: I): Boolean

    Check if the buffer map contains an id.

    Check if the buffer map contains an id.

    id

    the id to check for

    returns

    if the buffer contains the given id

  4. def forEach(f: Procedure2[I, MessageBuffer]): Unit

    Java API

    Java API

    Iterate over all elements of the buffer map and apply a function to each element.

    f

    the function to apply to each element

  5. def foreach(f: (I, MessageBuffer) ⇒ Unit): Unit

    Iterate over all elements of the buffer map and apply a function to each element.

    Iterate over all elements of the buffer map and apply a function to each element.

    f

    the function to apply to each element

  6. def getOrEmpty(id: I): MessageBuffer

    Get the message buffer for an id, or an empty buffer if the id doesn't exist in the map.

    Get the message buffer for an id, or an empty buffer if the id doesn't exist in the map.

    id

    the id to get the message buffer for

    returns

    the message buffer for the given id or an empty buffer if the id doesn't exist

  7. def isEmpty: Boolean

    Check if the buffer map is empty.

    Check if the buffer map is empty.

    returns

    if the buffer map is empty

  8. def nonEmpty: Boolean

    Check if the buffer map is not empty.

    Check if the buffer map is not empty.

    returns

    if the buffer map is not empty

  9. def remove(id: I): Unit

    Remove the buffer for an id.

    Remove the buffer for an id.

    id

    the id to remove the buffer for

  10. def size: Int

    How many ids are in the buffer map.

    How many ids are in the buffer map.

    returns

    the number of ids in the buffer map

  11. def totalSize: Int

    How many elements are in the buffers in the buffer map.

    How many elements are in the buffers in the buffer map.

    returns

    the number of elements in the buffers in the buffer map