Class IncomingMessage<T>
java.lang.Object
dev.ua.theroer.magicutils.messaging.IncomingMessage<T>
- Type Parameters:
T- payload type
-
Method Summary
Modifier and TypeMethodDescriptionchannel()Returns the channel this message arrived on.envelope()Returns the underlying envelope for advanced use.payload()Returns the decoded payload, deserializing on first access.source()Returns the member that sent this message.target()Returns the addressing hint the sender used.
-
Method Details
-
channel
-
source
Returns the member that sent this message.- Returns:
- originating source
-
target
-
envelope
Returns the underlying envelope for advanced use.- Returns:
- envelope
-
payload
Returns the decoded payload, deserializing on first access.- Returns:
- decoded payload (may be null for empty payloads)
-