All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class BaseLayer.BMessageBuffer

Abstract.MessageBuffer
   |
   +----BaseLayer.BMessageBuffer

public class BMessageBuffer
extends MessageBuffer
Queue implementation. We do not specify the message type, which may be a String or special message type.


Constructor Index

 o BMessageBuffer()
Default constructor

Method Index

 o addMessage(Object)
Add message to the queue.
 o getMessage()
Retrieve head and remove it from the Vector
 o sortMessage(String)
No implementation.

Constructors

 o BMessageBuffer
 public BMessageBuffer()
Default constructor

Methods

 o getMessage
 public synchronized Object getMessage()
Retrieve head and remove it from the Vector

Returns:
Object at head. If there's no element, it will return null
Overrides:
getMessage in class MessageBuffer
 o addMessage
 public synchronized void addMessage(Object o)
Add message to the queue. Note that the formal parameter type is Object

Parameters:
o - Object, added to the queue
Overrides:
addMessage in class MessageBuffer
 o sortMessage
 public void sortMessage(String type)
No implementation. Extension needed


All Packages  Class Hierarchy  This Package  Previous  Next  Index