public class Message
extends java.lang.Object
implements java.io.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 java.lang.String |
DEFAULT_TYPE |
Constructor and Description |
---|
Message()
Default constructor
|
Message(java.io.Serializable content)
Constructs a message and initializes the content.
|
Modifier and Type | Method and Description |
---|---|
java.io.Serializable |
getContent()
Return the content of this message.
|
java.lang.String |
getFrom()
Returns the node id of the sender of the message.
|
java.lang.String |
getMsgType()
Return the type of this message.
|
void |
setContent(java.io.Serializable content)
Set the content of this message.
|
void |
setMsgType(java.lang.String msgType)
Set the type representation of this message.
|
java.lang.String |
toString()
Return a String representation of this message.
|
public static final java.lang.String DEFAULT_TYPE
public Message()
public Message(java.io.Serializable content)
content
- public java.io.Serializable getContent()
public void setContent(java.io.Serializable content)
content
- the new contentpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getFrom()
public java.lang.String getMsgType()
public void setMsgType(java.lang.String msgType)
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.