public class ImmutableMessage
extends java.lang.Object
Constructor and Description |
---|
ImmutableMessage(com.mirth.connect.donkey.model.message.Message message)
Instantiates a new ImmutableMessage object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChannelId()
Returns the ID of the channel associated with this message.
|
java.util.Map<java.lang.Integer,ImmutableConnectorMessage> |
getConnectorMessages()
Returns a map of connector messages associated with this message.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getDestinationIdMap()
Returns a Map of destination connector names linked to their corresponding connector metadata
ID.
|
java.util.Map<java.lang.String,java.lang.String> |
getDestinationNameMap()
Deprecated.
This method is deprecated and will soon be removed. Please use
getDestinationIdMap() instead. |
ImmutableConnectorMessage |
getMergedConnectorMessage()
Returns a "merged" connector message containing data from all connector messages combined.
|
java.lang.Long |
getMessageId()
Returns the sequential ID of this message, as a Long.
|
java.util.Calendar |
getReceivedDate()
Deprecated.
This method is deprecated and will soon be removed. This method currently returns
the received date of the source connector message.
|
java.lang.String |
getServerId()
Returns the ID of the server associated with this message.
|
boolean |
isProcessed()
Returns whether this message has finished processing through a channel.
|
java.lang.String |
toString() |
public ImmutableMessage(com.mirth.connect.donkey.model.message.Message message)
message
- The Message object that this object will reference for retrieving data.public java.lang.Long getMessageId()
public java.lang.String getServerId()
public java.lang.String getChannelId()
public java.util.Calendar getReceivedDate()
public boolean isProcessed()
public java.util.Map<java.lang.Integer,ImmutableConnectorMessage> getConnectorMessages()
public ImmutableConnectorMessage getMergedConnectorMessage()
public java.util.Map<java.lang.String,java.lang.String> getDestinationNameMap()
getDestinationIdMap()
instead.public java.util.Map<java.lang.String,java.lang.Integer> getDestinationIdMap()
public java.lang.String toString()
toString
in class java.lang.Object