- All Superinterfaces:
ReturnableSessionProvider,SessionProvider
A pool of sessions for a given session info.
Allows a single user to use multiple sessions in parallel.
Allows a single user to use multiple sessions in parallel.
- Author:
- harald
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintGets the maximum pool size.getName()Gets the name of this pool.intGets the session group id.Gets the session info.intgetSize()Gets the current number of session instances.booleanReturns whether the pool is shutdown.voidshutdown()Closes all sessions in the pool, cleans up and makes the pool unusable.Methods inherited from interface org.tentackle.session.ReturnableSessionProvider
putSessionMethods inherited from interface org.tentackle.session.SessionProvider
getSession
-
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
-