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
-
MessageBuffer()
- Default constructor
-
addMessage(Object)
- Add Message
-
getMessage()
- Retrieve head and remove it from the Vector
-
sortMessage(String)
- Sort message if necessary.
MessageBuffer
public MessageBuffer()
- Default constructor
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
addMessage
public abstract synchronized void addMessage(Object o)
- Add Message
sortMessage
public abstract void sortMessage(String criteria)
- Sort message if necessary.
All Packages Class Hierarchy This Package Previous Next Index