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:
java.io.Serializable
public class Message<E> extends java.util.EventObject
Message forITopic
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected E
messageObject
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
getMessageObject()
Returns the published messageMember
getPublishingMember()
Returns the member that published the message.long
getPublishTime()
Return the time when the message is published
-
-
-
Field Detail
-
messageObject
protected E messageObject
-
-
Method Detail
-
getMessageObject
public E 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
public Member 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
-
-