public interface SessionPoolFactory
Factory for session pools.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(String name, Session session, int iniSize, int incSize, int minSize, int maxSize, long maxIdleMinutes, long maxUsageMinutes) Creates a single-user session pool.create(String name, Session session, int maxSize, int maxTotalSize, long maxIdleMinutes, long maxUsageMinutes) Creates a multi-user session pool.static SessionPoolFactoryThe singleton.
-
Method Details
-
getInstance
The singleton.- Returns:
- the singleton
-
create
SessionPool create(String name, Session session, int iniSize, int incSize, int minSize, int maxSize, long maxIdleMinutes, long maxUsageMinutes) Creates a single-user session pool.- Parameters:
name- the name of the poolsession- the lead session to get the configuration from (session info, implementation specific stuff)iniSize- the initial pool sizeincSize- the number of sessions to enlarge the pool if all in useminSize- the minimum number of sessions to keep in pool, < 0 to shut down pool if all sessions closedmaxSize- the maximum number of sessions, 0 = unlimitedmaxIdleMinutes- the idle timeout in minutes to close unused sessions, 0 = unlimitedmaxUsageMinutes- the max. used time in minutes, 0 = unlimited- Returns:
- the pool
-
create
MultiUserSessionPool create(String name, Session session, int maxSize, int maxTotalSize, long maxIdleMinutes, long maxUsageMinutes) Creates a multi-user session pool.- Parameters:
name- the name of the poolsession- the lead session to get the low-level configuration from (backend info, implementation specific stuff)maxSize- the maximum number of sessions per session infomaxTotalSize- the maximum total number of sessionsmaxIdleMinutes- the idle timeout in minutes to close unused sessions per session info, 0 = unlimitedmaxUsageMinutes- the max. used time in minutes per session info, 0 = unlimited- Returns:
- the pool
-