Go backward to Selector : Message SelectorsGo up to 4.1 Types Go forward to MessageCell : Message Cells |
MessageQueue
: Message Queuesclass MessageQueue { MessageQueue() boolean isEmpty() void enqueue(Message m) Message dequeue() MessageCell getCell() }
This type is used to implement message selectors.
A message queue is a FIFO (first in/first out) list of messages. The default
constructor creates an empty queue; isEmpty
returns true if and only
if a queue is empty; enqueue
adds a message to the end of the queue;
dequeue
extracts the head of the queue (removing it from the queue).
For low-level queue manipulation, getCell
returns the
cell representing the head
of the queue (or null
, if the queue is empty).