Package com.hazelcast.topic
Class Message<E>
java.lang.Object
java.util.EventObject
com.hazelcast.topic.Message<E>
- Type Parameters:
E
- message type
- All Implemented Interfaces:
Serializable
Message for
ITopic
.- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the published messageReturns the member that published the message.long
Return the time when the message is publishedMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
messageObject
-
-
Constructor Details
-
Message
-
-
Method Details
-
getMessageObject
Returns the published message- Returns:
- the published message object
-
getPublishTime
public long getPublishTime()Return the time when the message is published- Returns:
- the time when the message is published in milliseconds since 1970.01.01.
-
getPublishingMember
Returns the member that published the message. It can be that the member is null if:- the message was send by a client and not a member
- the member that send the message, left the cluster before the message was processed.
- Returns:
- the member that published the message
-