Interface SessionPoolFactory


public interface SessionPoolFactory
Factory for session pools.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(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.
    The singleton.
  • Method Details

    • getInstance

      static SessionPoolFactory 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 pool
      session - the lead session to get the configuration from (session info, implementation specific stuff)
      iniSize - the initial pool size
      incSize - the number of sessions to enlarge the pool if all in use
      minSize - the minimum number of sessions to keep in pool, < 0 to shut down pool if all sessions closed
      maxSize - the maximum number of sessions, 0 = unlimited
      maxIdleMinutes - the idle timeout in minutes to close unused sessions, 0 = unlimited
      maxUsageMinutes - 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 pool
      session - the lead session to get the low-level configuration from (backend info, implementation specific stuff)
      maxSize - the maximum number of sessions per session info
      maxTotalSize - the maximum total number of sessions
      maxIdleMinutes - the idle timeout in minutes to close unused sessions per session info, 0 = unlimited
      maxUsageMinutes - the max. used time in minutes per session info, 0 = unlimited
      Returns:
      the pool