org.richfaces.application.push

## Interface Session

-     public interface Session

  Author:
    Nick Belaevski

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `clearBroadcastedMessages(long sequenceNumber)`
    `void` | `connect(Request request)`
    `void` | `disconnect()`
    `Map<TopicKey,String>` | `getFailedSubscriptions()`
    `String` | `getId()`
    `long` | `getLastAccessedTime()`
    `int` | `getMaxInactiveInterval()`
    `Collection<MessageData>` | `getMessages()`
    `Collection<TopicKey>` | `getSuccessfulSubscriptions()`
    `void` | `invalidate()`
    `void` | `push(TopicKey topicKey, String serializedData)`
    `void` | `subscribe(String[] topics)`

- - ### Method Detail

    - #### getMaxInactiveInterval

          int getMaxInactiveInterval()

    - #### getLastAccessedTime

          long getLastAccessedTime()

    - #### getId

          String getId()

    - #### getSuccessfulSubscriptions

          Collection<TopicKey> getSuccessfulSubscriptions()

    - #### getFailedSubscriptions

          Map<TopicKey,String> getFailedSubscriptions()

    - #### subscribe

          void subscribe(String[] topics)

    - #### connect

          void connect(Request request)
                       throws Exception

      Throws:
        `Exception`

    - #### disconnect

          void disconnect()
                          throws Exception

      Throws:
        `Exception`

    - #### invalidate

          void invalidate()

    - #### push

          void push(TopicKey topicKey,
                  String serializedData)

    - #### getMessages

          Collection<MessageData> getMessages()

    - #### clearBroadcastedMessages

          void clearBroadcastedMessages(long sequenceNumber)

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