@Immutable @ThreadSafe public abstract class AddressedMessage extends Message
Messages (and therefore all subtypes) are immutable once created.
A Message works with a MessageDecoder
object in a double dispatch
pattern to do message specific-processing in e.g. a node implementation.
MessageDecoder
Modifier and Type | Field and Description |
---|---|
(package private) NodeID |
destNodeID |
sourceNodeID
MTI_CONSUMER_IDENTIFIED, MTI_DATAGRAM, MTI_DATAGRAM_RCV_OK, MTI_DATAGRAM_REJECTED, MTI_IDENTIFY_CONSUMERS, MTI_IDENTIFY_CONSUMERS_RANGE, MTI_IDENTIFY_EVENTS, MTI_IDENTIFY_PRODUCERS, MTI_IDENTIFY_PRODUCERS_RANGE, MTI_INITIALIZATION_COMPLETE, MTI_LEARN_EVENT, MTI_OPT_INT_REJECTED, MTI_PC_EVENT_REPORT, MTI_PRODUCER_IDENTIFIED, MTI_PROTOCOL_IDENT_REPLY, MTI_PROTOCOL_IDENT_REQUEST, MTI_SIMPLE_NODE_IDENT_REPLY, MTI_SIMPLE_NODE_IDENT_REQUEST, MTI_STREAM_DATA_COMPLETE, MTI_STREAM_DATA_PROCEED, MTI_STREAM_DATA_SEND, MTI_STREAM_INIT_REPLY, MTI_STREAM_INIT_REQUEST, MTI_VERIFIED_NID, MTI_VERIFY_NID
Modifier | Constructor and Description |
---|---|
protected |
AddressedMessage() |
|
AddressedMessage(NodeID source,
NodeID dest) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
To be equal, messages have to have the
same type and content
|
NodeID |
getDestNodeID() |
int |
hashCode() |
String |
toString() |
applyTo, getMTI, getSourceNodeID
Information on copyright, trademarks and licenses is linked here.
Site hosted by: