next up previous contents
Next: Data Up: Utility Classes Previous: Utility Classes

   
Messages

A Message is a simple class containing a unique ID, the receiver's and sender's address (as an Object), a byte buffer to contain the actual data and a flag indicating whether it is a request or a response.

It will be extended in that there will be additional methods for storing and retrieving objects and atomic Java types to / from the byte buffer, for adding data at the head of the buffer (without copying, see 2.1.2) etc.



Bela Ban
1998-08-06