org.richfaces.application.push

## Class MessageData

- java.lang.Object
- - org.richfaces.application.push.MessageData

-     public final class MessageData
      extends Object

  Holds association of serialized message with topic key and a sequence number that can be used to determine whether given message was already consumed by client.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MessageData(TopicKey topicKey, String serializedMessageData, long sequenceNumber)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getSequenceNumber()` A sequence number that can be used to determine whether given message was already consumed by client.
    `String` | `getSerializedMessage()` Returns serialized message
    `TopicKey` | `getTopicKey()` Returns a topic key with which this message is associated

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MessageData

          public MessageData(TopicKey topicKey,
                     String serializedMessageData,
                     long sequenceNumber)

  - ### Method Detail

    - #### getTopicKey

          public TopicKey getTopicKey()

      Returns a topic key with which this message is associated

    - #### getSerializedMessage

          public String getSerializedMessage()

      Returns serialized message

    - #### getSequenceNumber

          public long getSequenceNumber()

      A sequence number that can be used to determine whether given message was already consumed by client.

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.