|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sequalite.session.SessionPool
public class SessionPool
Constructor Summary | |
---|---|
SessionPool(java.sql.Connection connection,
java.util.logging.Level sqlLevel,
int poolsize,
int poolSizeIncrement,
long poolMonitorInterval)
|
|
SessionPool(java.util.Properties properties,
java.lang.String jdbcContext,
java.util.logging.Level sqlLevel,
int poolsize,
int poolSizeIncrement,
long poolMonitorInterval)
|
|
SessionPool(java.util.Properties properties,
java.lang.String jdbcContext,
java.lang.String dsName,
java.sql.Connection connection,
java.util.logging.Level sqlLevel,
int poolsize,
int poolSizeIncrement,
long poolMonitorInterval)
|
|
SessionPool(java.lang.String dsName,
java.util.logging.Level sqlLevel,
int poolsize,
int poolSizeIncrement,
long poolMonitorInterval)
|
Method Summary | |
---|---|
void |
closeSessions()
close all sessions |
Session |
getSession()
get a session from the pool |
void |
reapSessions()
remove unused and stale connections |
void |
returnSession(Session session)
returns the session to the pool |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionPool(java.sql.Connection connection, java.util.logging.Level sqlLevel, int poolsize, int poolSizeIncrement, long poolMonitorInterval)
public SessionPool(java.util.Properties properties, java.lang.String jdbcContext, java.util.logging.Level sqlLevel, int poolsize, int poolSizeIncrement, long poolMonitorInterval)
public SessionPool(java.util.Properties properties, java.lang.String jdbcContext, java.lang.String dsName, java.sql.Connection connection, java.util.logging.Level sqlLevel, int poolsize, int poolSizeIncrement, long poolMonitorInterval)
public SessionPool(java.lang.String dsName, java.util.logging.Level sqlLevel, int poolsize, int poolSizeIncrement, long poolMonitorInterval)
Method Detail |
---|
public void closeSessions() throws SeQuaLiteException
SeQuaLiteException
public Session getSession() throws SeQuaLiteException
SeQuaLiteException
public void reapSessions()
public void returnSession(Session session)
session
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |