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
- Alphabetic
- By Inheritance
- MessageBufferMap
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MessageBufferMap()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from MessageBufferMap[I] to any2stringadd[MessageBufferMap[I]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (MessageBufferMap[I], B)
- Implicit
- This member is added by an implicit conversion from MessageBufferMap[I] to ArrowAssoc[MessageBufferMap[I]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
add(id: I): Unit
Add an id to the buffer map
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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
-
def
ensuring(cond: (MessageBufferMap[I]) ⇒ Boolean, msg: ⇒ Any): MessageBufferMap[I]
- Implicit
- This member is added by an implicit conversion from MessageBufferMap[I] to Ensuring[MessageBufferMap[I]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (MessageBufferMap[I]) ⇒ Boolean): MessageBufferMap[I]
- Implicit
- This member is added by an implicit conversion from MessageBufferMap[I] to Ensuring[MessageBufferMap[I]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): MessageBufferMap[I]
- Implicit
- This member is added by an implicit conversion from MessageBufferMap[I] to Ensuring[MessageBufferMap[I]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): MessageBufferMap[I]
- Implicit
- This member is added by an implicit conversion from MessageBufferMap[I] to Ensuring[MessageBufferMap[I]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
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
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from MessageBufferMap[I] to StringFormat[MessageBufferMap[I]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
isEmpty: Boolean
Check if the buffer map is empty.
Check if the buffer map is empty.
- returns
if the buffer map is empty
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (MessageBufferMap[I], B)
- Implicit
- This member is added by an implicit conversion from MessageBufferMap[I] to ArrowAssoc[MessageBufferMap[I]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc