Class Message
java.lang.Object
dk.cloudcreate.essentials.shared.functional.tuple.Pair<Object,MessageMetaData>
dk.cloudcreate.essentials.components.foundation.messaging.queue.Message
- All Implemented Interfaces:
dk.cloudcreate.essentials.shared.functional.tuple.Tuple<dk.cloudcreate.essentials.shared.functional.tuple.Pair<Object,,MessageMetaData>> Serializable
- Direct Known Subclasses:
OrderedMessage
public class Message
extends dk.cloudcreate.essentials.shared.functional.tuple.Pair<Object,MessageMetaData>
Encapsulates a Message, which is a
Pair of Payload and its MessageMetaData- See Also:
-
Field Summary
Fields inherited from class dk.cloudcreate.essentials.shared.functional.tuple.Pair
_1, _2 -
Constructor Summary
ConstructorsConstructorDescriptionCreate a newMessageand an emptyMessageMetaDataMessage(Object payload, MessageMetaData metaData) Create a newMessage -
Method Summary
Modifier and TypeMethodDescriptionGet theMessageMetaDataassociated with the messageGet the message payloadstatic MessageCreate a newMessageand an emptyMessageMetaDatastatic Messageof(Object payload, MessageMetaData metaData) Create a newMessagetoString()Methods inherited from class dk.cloudcreate.essentials.shared.functional.tuple.Pair
_1, _2, arity, equals, hashCode, map, map, map1, map2, of, swap, toEntry, toList
-
Constructor Details
-
Message
Create a newMessageand an emptyMessageMetaData- Parameters:
payload- the message payload
-
Message
Create a newMessage- Parameters:
payload- the message payloadmetaData- theMessageMetaDataassociated with the message
-
-
Method Details
-
of
Create a newMessageand an emptyMessageMetaData- Parameters:
payload- the message payload- Returns:
- the new
Message
-
of
Create a newMessage- Parameters:
payload- the message payloadmetaData- theMessageMetaDataassociated with the message- Returns:
- the new
Message
-
getPayload
Get the message payload- Returns:
- the message payload
-
getMetaData
Get theMessageMetaDataassociated with the message- Returns:
- the
MessageMetaDataassociated with the message
-
toString
- Overrides:
toStringin classdk.cloudcreate.essentials.shared.functional.tuple.Pair<Object,MessageMetaData>
-