Interface SessionPool

All Superinterfaces:
ReturnableSessionProvider, SessionProvider

public interface SessionPool extends ReturnableSessionProvider
A pool of sessions for a given session info.
Allows a single user to use multiple sessions in parallel.
Author:
harald
See Also:
  • Method Details

    • getSessionInfo

      SessionInfo getSessionInfo()
      Gets the session info.
      Returns:
      the session info
    • getSessionGroupId

      int getSessionGroupId()
      Gets the session group id.
      Returns:
      the session group, 0 if ungrouped
    • getName

      String getName()
      Gets the name of this pool.
      Returns:
      the name
    • getMaxSize

      int getMaxSize()
      Gets the maximum pool size.
      Returns:
      the max. number of concurrent session instances, 0 = unlimited
    • getSize

      int getSize()
      Gets the current number of session instances.
      Returns:
      the number of sessions managed by this pool
    • shutdown

      void shutdown()
      Closes all sessions in the pool, cleans up and makes the pool unusable.
    • isShutdown

      boolean isShutdown()
      Returns whether the pool is shutdown.
      Returns:
      true if shutdown