com.hazelcast.core
Class Message<E>

java.lang.Object
  extended by java.util.EventObject
      extended by 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

Field Summary
protected  E messageObject
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
Message(String topicName, E messageObject, long publishTime, Member publishingMember)
           
 
Method Summary
 E getMessageObject()
          Returns the published message
 Member getPublishingMember()
          Returns the member that published the message
 long getPublishTime()
          Return the time when the message is published
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

messageObject

protected E messageObject
Constructor Detail

Message

public Message(String topicName,
               E messageObject,
               long publishTime,
               Member publishingMember)
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

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.