org.richfaces.push

## Class SessionImpl

- java.lang.Object
- - org.richfaces.push.SessionImpl

- All Implemented Interfaces:
    Session

      public class SessionImpl
      extends Object
      implements Session

  Author:
    Nick Belaevski

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SessionImpl(String id, SessionManager sessionManager, TopicsContext topicsContext)`

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### SessionImpl

          public SessionImpl(String id,
                     SessionManager sessionManager,
                     TopicsContext topicsContext)

  - ### Method Detail

    - #### connect

          public void connect(Request request)
                       throws Exception

      Specified by:
        `connect` in interface `Session`
      Throws:
        `Exception`

    - #### getRequest

          protected Request getRequest()

    - #### processConnect

          protected void processConnect(Request request)
                                 throws Exception

      Throws:
        `Exception`

    - #### disconnect

          public void disconnect()
                          throws Exception

      Specified by:
        `disconnect` in interface `Session`
      Throws:
        `Exception`

    - #### getLastAccessedTime

          public long getLastAccessedTime()

      Specified by:
        `getLastAccessedTime` in interface `Session`

    - #### getMaxInactiveInterval

          public int getMaxInactiveInterval()

      Specified by:
        `getMaxInactiveInterval` in interface `Session`

    - #### getId

          public String getId()

      Specified by:
        `getId` in interface `Session`

    - #### invalidate

          public void invalidate()

      Specified by:
        `invalidate` in interface `Session`

    - #### destroy

          public void destroy()

    - #### poll

          public Collection<MessageData> poll()

    - #### getFailedSubscriptions

          public Map<TopicKey,String> getFailedSubscriptions()

      Specified by:
        `getFailedSubscriptions` in interface `Session`

    - #### getSuccessfulSubscriptions

          public Collection<TopicKey> getSuccessfulSubscriptions()

      Specified by:
        `getSuccessfulSubscriptions` in interface `Session`

    - #### subscribe

          public void subscribe(String[] topics)

      Specified by:
        `subscribe` in interface `Session`

    - #### getMessages

          public Collection<MessageData> getMessages()

      Specified by:
        `getMessages` in interface `Session`

    - #### clearBroadcastedMessages

          public void clearBroadcastedMessages(long sequenceNumber)

      Specified by:
        `clearBroadcastedMessages` in interface `Session`

    - #### push

          public void push(TopicKey topicKey,
                  String serializedData)

      Specified by:
        `push` in interface `Session`

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