-
- All Superinterfaces:
ReturnableSessionProvider,SessionProvider
public interface SessionPool extends ReturnableSessionProvider
A pool of sessions.- Author:
- harald
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetMaxSize()Gets the maximum poolsize.java.lang.StringgetName()Gets the name of this pool.SessionInfogetSessionInfo()Gets the session info.intgetSize()Gets the current number of session instances.booleanisShutdown()Returns 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
putSession
-
Methods inherited from interface org.tentackle.session.SessionProvider
getSession
-
-
-
-
Method Detail
-
getSessionInfo
SessionInfo getSessionInfo()
Gets the session info.- Returns:
- the session info
-
getName
java.lang.String getName()
Gets the name of this pool.- Returns:
- the name
-
getMaxSize
int getMaxSize()
Gets the maximum poolsize.- 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
-
-