public class Message extends Object implements Serializable
It can transport an arbitrary serializable object. The type of the message can be set. It is an arbitrary string. Types starting with "_ep_" are reserved for internal use.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TYPE |
Constructor and Description |
---|
Message()
Default constructor
|
Message(Serializable content)
Constructs a message and initializes the content.
|
Modifier and Type | Method and Description |
---|---|
Serializable |
getContent()
Return the content of this message.
|
String |
getFrom()
Returns the node id of the sender of the message.
|
String |
getMsgType()
Return the type of this message.
|
void |
setContent(Serializable content)
Set the content of this message.
|
void |
setMsgType(String msgType)
Set the type representation of this message.
|
String |
toString()
Return a String representation of this message.
|
public static final String DEFAULT_TYPE
public Message()
public Message(Serializable content)
content
- public Serializable getContent()
public void setContent(Serializable content)
content
- the new contentpublic String toString()
public String getFrom()
public String getMsgType()
public void setMsgType(String msgType)
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.