public class SqlConnectionKeepAlive extends LoopingThread
Needing this is probably an indication of a bad design, but if you don't have time to fix the design, this might be very useful.
Copyright 2010 Partner Software, Inc.
| Constructor and Description |
|---|
SqlConnectionKeepAlive(java.sql.Connection connection)
Starts an keep-alive thread with a 1-hour loop interval.
|
SqlConnectionKeepAlive(java.sql.Connection connection,
Duration interval) |
SqlConnectionKeepAlive(SqlConnection connection)
Starts an keep-alive thread with a 1-hour loop interval.
|
SqlConnectionKeepAlive(SqlConnection connection,
Duration interval) |
| Modifier and Type | Method and Description |
|---|---|
void |
runTask()
By default, this runs the runnable.
|
getInterval, getTask, isRunning, pauseLooping, resumeLooping, run, setInterval, setTask, start, stopRunningactiveCount, checkAccess, clone, 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, stop, stop, suspend, toString, yieldpublic SqlConnectionKeepAlive(SqlConnection connection, Duration interval)
public SqlConnectionKeepAlive(java.sql.Connection connection,
Duration interval)
public SqlConnectionKeepAlive(SqlConnection connection)
public SqlConnectionKeepAlive(java.sql.Connection connection)
public void runTask()
throws java.lang.Exception
LoopingThreadrunTask in class LoopingThreadjava.lang.Exception