Package org.baseagent.comms
Class Message
java.lang.Object
org.baseagent.comms.Message
-
Constructor Summary
ConstructorDescriptionMessage()
Message
(MessageListener currentSender, String messageType) Message
(MessageListener currentSender, String messageType, String messageSubtype) Message
(MessageListener currentSender, String messageType, String messageSubtype, Map<String, Object> payload) Message
(MessageListener originalSender, MessageListener currentSender, String messageType, String messageSubtype, Map<String, Object> payload) Message
(MessageListener originalSender, MessageListener currentSender, String messageType, Map<String, Object> payload) -
Method Summary
Modifier and TypeMethodDescriptionGenerates a new Message object that is a fresh Message object but looks the same as an existing message.boolean
getUUID()
int
hashCode()
boolean
boolean
void
setMessageSubtype
(String messageSubtype) void
setMessageType
(String messageType) void
setOriginalSender
(MessageListener sender) void
setPayload
(Map<String, Object> payload) void
setSender
(MessageListener sender) toString()
-
Constructor Details
-
Message
public Message() -
Message
-
Message
-
Message
public Message(MessageListener originalSender, MessageListener currentSender, String messageType, Map<String, Object> payload) -
Message
-
Message
-
Message
public Message(MessageListener originalSender, MessageListener currentSender, String messageType, String messageSubtype, Map<String, Object> payload)
-
-
Method Details
-
setSender
-
getSender
-
setOriginalSender
-
getOriginalSender
-
setMessageType
-
getMessageType
-
setMessageSubtype
-
getMessageSubtype
-
is
-
is
-
getUUID
-
createPayload
-
setPayload
-
getPayload
-
hashCode
public int hashCode() -
equals
-
toString
-
createCopy
Generates a new Message object that is a fresh Message object but looks the same as an existing message. (You are responsible for updating the Payload - the returned message will have an empty payload)
-