public class AbandonedConnectionCleanupThread
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Method and Description |
|---|---|
static void |
checkedShutdown()
Performs a checked shutdown, i.e., the context ClassLoaders from this and the caller thread are checked for consistency prior to performing the shutdown
operation.
|
static boolean |
isAlive()
Returns true if the working thread is alive.
|
void |
run() |
protected static void |
trackConnection(MysqlConnection conn,
NetworkResources io)
Tracks the finalization of a
MysqlConnection object and keeps a reference to its NetworkResources so that they can be later released. |
static void |
uncheckedShutdown()
Performs an unchecked shutdown, i.e., the shutdown is performed independently of the context ClassLoaders from the involved threads.
|
public void run()
run in interface java.lang.Runnablepublic static void checkedShutdown()
public static void uncheckedShutdown()
public static boolean isAlive()
protected static void trackConnection(MysqlConnection conn, NetworkResources io)
MysqlConnection object and keeps a reference to its NetworkResources so that they can be later released.conn - the Connection object to track for finalizationio - the network resources to close on the connection finalization