scala.actors
class MessageQueue

[source: `scala/actors/MessageQueue.scala`]

@serializable
`` `class` MessageQueue
  `extends` AnyRef

  The class `MessageQueue` provides an efficient implementation of a message queue specialized for this actor library. Classes in this package are supposed to be the only clients of this class.

Version
  0.9.8
Author
  Philipp Haller

Value Summary
`var` | first : MessageQueueElement
`var` | last : MessageQueueElement

Method Summary
`def` | append (msg : Any, session : OutputChannel[Any]) : Unit
`protected def` | changeSize (diff : Int) : Unit
`def` | extractFirst (p : (Any) => Boolean) : MessageQueueElement
`def` | isEmpty : Boolean
`def` | size : Int

Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Value Details

`` `var` first : MessageQueueElement

`` `var` last : MessageQueueElement

Method Details

`` `def` isEmpty : Boolean

`` `def` size : Int

`protected` `def` changeSize(diff : Int) : Unit

`` `def` append(msg : Any, session : OutputChannel[Any]) : Unit

`` `def` extractFirst(p : (Any) => Boolean) : MessageQueueElement