public class NetDB_Connection_Pool
extends java.lang.Thread
| Constructor and Description |
|---|
NetDB_Connection_Pool() |
| Modifier and Type | Method and Description |
|---|---|
static void |
check_monitor() |
static void |
cleanup_old_connections() |
static java.util.concurrent.ConcurrentLinkedDeque<java.sql.Connection> |
free_type(java.lang.Boolean search)
Get the correct 'free' ConcurrentLinkedDeque depending on whether or not we're using a search connection.
|
static java.util.concurrent.ConcurrentLinkedDeque<java.sql.Connection> |
free_type(java.sql.Connection con)
Get the correct 'free' ConcurrentLinkedDeque depending on whether or not we're using a search connection,
when we already have a connection.
|
static java.sql.Connection |
get_connection(java.lang.String db_url,
java.util.Properties db_props,
java.lang.Boolean search)
Get a connection from the pool.
|
static void |
purge_connection(java.sql.Connection con)
Forcibly remove a connection from the pool.
|
static void |
return_connection(java.sql.Connection con)
Return a connection to the pool.
|
void |
run() |
static java.lang.Long |
to_millis(java.lang.String time) |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic static java.sql.Connection get_connection(java.lang.String db_url,
java.util.Properties db_props,
java.lang.Boolean search)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void return_connection(java.sql.Connection con)
public static void purge_connection(java.sql.Connection con)
public static java.util.concurrent.ConcurrentLinkedDeque<java.sql.Connection> free_type(java.lang.Boolean search)
public static java.util.concurrent.ConcurrentLinkedDeque<java.sql.Connection> free_type(java.sql.Connection con)
public static void cleanup_old_connections()
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.Long to_millis(java.lang.String time)
public static void check_monitor()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread