org.richfaces.application.push

## Interface Topic

-     public interface Topic

  Author:
    Nick Belaevski

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addTopicListener(TopicListener topicListener)`
    `void` | `checkSubscription(TopicKey key, Session session)`
    `TopicKey` | `getKey()`
    `MessageDataSerializer` | `getMessageDataSerializer()`
    `void` | `publish(TopicKey key, Object messageData)`
    `void` | `publishEvent(TopicEvent event)`
    `void` | `removeTopicListener(TopicListener topicListener)`
    `void` | `setMessageDataSerializer(MessageDataSerializer serializer)`

- - ### Method Detail

    - #### getKey

          TopicKey getKey()

    - #### getMessageDataSerializer

          MessageDataSerializer getMessageDataSerializer()

    - #### setMessageDataSerializer

          void setMessageDataSerializer(MessageDataSerializer serializer)

    - #### addTopicListener

          void addTopicListener(TopicListener topicListener)

    - #### removeTopicListener

          void removeTopicListener(TopicListener topicListener)

    - #### checkSubscription

          void checkSubscription(TopicKey key,
                               Session session)
                                 throws SubscriptionFailureException

      Throws:
        `SubscriptionFailureException`

    - #### publishEvent

          void publishEvent(TopicEvent event)

    - #### publish

          void publish(TopicKey key,
                     Object messageData)
                       throws MessageException

      Throws:
        `MessageException`

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