Package org.drasyl.event
Class MessageEvent
java.lang.Object
org.drasyl.event.MessageEvent
- All Implemented Interfaces:
Event
This event signals that the node has received a message addressed to it.
This is an immutable object.
-
Constructor Summary
ConstructorsConstructorDescriptionMessageEvent(CompressedPublicKey sender, Object payload) Creates a newMessageEvent -
Method Summary
-
Constructor Details
-
MessageEvent
Creates a newMessageEvent- Parameters:
sender- the message's senderpayload- content of the message
-
-
Method Details