org.richfaces.application.push

## Interface SessionManager

- All Known Implementing Classes:
    SessionManagerImpl

      public interface SessionManager

  Session manager is a registry of all active sessions that maintains their state and provides wipe out for expired sessions.
  Author:
    Nick Belaevski

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `destroy()` Destroys all associated sessions
    `Session` | `getPushSession(String id)` Look ups session with given ID
    `void` | `putPushSession(Session pushSession)` Registers session to the system
    `void` | `requeue(Session session)` Re-queues given session without actually adding it when it is not registered yet via `putPushSession(Session)`.

- - ### Method Detail

    - #### putPushSession

          void putPushSession(Session pushSession)
                              throws IllegalStateException

      Registers session to the system
      Throws:
        `IllegalStateException`

    - #### getPushSession

          Session getPushSession(String id)

      Look ups session with given ID

    - #### requeue

          void requeue(Session session)

      Re-queues given session without actually adding it when it is not registered yet via `putPushSession(Session)`.

    - #### destroy

          void destroy()

      Destroys all associated sessions

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