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.
-
BMessageBuffer()
- Default constructor
-
addMessage(Object)
- Add message to the queue.
-
getMessage()
- Retrieve head and remove it from the Vector
-
sortMessage(String)
- No implementation.
BMessageBuffer
public BMessageBuffer()
- Default constructor
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
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
sortMessage
public void sortMessage(String type)
- No implementation. Extension needed
All Packages Class Hierarchy This Package Previous Next Index