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)

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

Instance Constructors

  1. new MessageBufferMap()

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. def add(id: I): Unit

    Add an id to the buffer map

  5. 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

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. 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

  9. def drop(id: I, reason: String, deadLetters: ActorRef): Int

    Remove the buffer for an id, but publish a akka.actor.Dropped for each dropped buffered message

    Remove the buffer for an id, but publish a akka.actor.Dropped for each dropped buffered message

    returns

    how many buffered messages were dropped

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. 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

  13. 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

  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. 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

  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  17. def isEmpty: Boolean

    Check if the buffer map is empty.

    Check if the buffer map is empty.

    returns

    if the buffer map is empty

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. 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

  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. 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

  24. 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

  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. 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

  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped