service
Class TypedMessage
java.lang.Object
communication.Message
service.TypedMessage
- All Implemented Interfaces:
- java.io.Serializable
public class TypedMessage
- extends Message
A typed message is a message with its associated type of service
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
type
protected MessageType type
- Type of the service
TypedMessage
public TypedMessage(ProcessIdentifier processId,
java.lang.Object data,
MessageType type)
- Create a typed message
- Parameters:
processId
- the process identifier for the messagedata
- data the data of the messagetype
- the type of the service
getType
public MessageType getType()
- Returns:
- the type of the service
setType
public void setType(MessageType type)
- Parameters:
type
- the type of the service
untypeMessage
public Message untypeMessage()
- Returns:
- the message embedded in the typed message