All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Abstract.MessageBuffer

Abstract.MessageBuffer

public abstract class MessageBuffer
Queue implementation using Vector class We do not specify the message type, which may be a String or special message type. Just before the message is performed, you need to cast the object to the message type.

See Also:
BMessageBuffer

Constructor Index

 o MessageBuffer()
Default constructor

Method Index

 o addMessage(Object)
Add Message
 o getMessage()
Retrieve head and remove it from the Vector
 o sortMessage(String)
Sort message if necessary.

Constructors

 o MessageBuffer
 public MessageBuffer()
Default constructor

Methods

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

Returns:
Object at head. If there's no element, it will return null
 o addMessage
 public abstract synchronized void addMessage(Object o)
Add Message

 o sortMessage
 public abstract void sortMessage(String criteria)
Sort message if necessary.


All Packages  Class Hierarchy  This Package  Previous  Next  Index