Class SessionPool

java.lang.Object
net.quasardb.qdb.SessionPool

public class SessionPool extends Object
Session / connection pool. This class is thread-safe. Simple, fixed-size pool where sessions are pre-allocated in the constructor.
  • Constructor Details

    • SessionPool

      public SessionPool(SessionFactory factory, int size)
      Parameters:
      factory - SessionFactory instance used to create new sessions.
      size - Amount of sessions to pre-allocate.
  • Method Details