com.hazelcast.core
Class Message<E>
java.lang.Object
java.util.EventObject
com.hazelcast.core.Message<E>
- Type Parameters:
E
- message type
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- DataAwareMessage
public class Message<E>
- extends EventObject
Message for ITopic
.
- See Also:
- Serialized Form
Constructor Summary |
Message(String topicName,
E messageObject,
long publishTime,
Member publishingMember)
|
messageObject
protected E messageObject
Message
public Message(String topicName,
E messageObject,
long publishTime,
Member publishingMember)
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
getPublishingMember
public Member getPublishingMember()
- Returns the member that published the message
- Returns:
- the member that published the message
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.