public final class PoolUtilities
extends java.lang.Object
| Constructor and Description |
|---|
PoolUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createInstance(java.lang.String className,
java.lang.Class<T> clazz,
java.lang.Object... args) |
static java.util.concurrent.ThreadPoolExecutor |
createThreadPoolExecutor(int queueSize,
java.lang.String threadName,
java.util.concurrent.ThreadFactory threadFactory) |
static long |
elapsedTimeMs(long start)
Get the elapsed time in millisecond between the specified start time and now.
|
static void |
executeSqlAutoCommit(java.sql.Connection connection,
java.lang.String sql)
Execute the user-specified init SQL.
|
static void |
quietlyCloseConnection(java.sql.Connection connection) |
static void |
quietlySleep(long millis) |
public static void quietlyCloseConnection(java.sql.Connection connection)
public static long elapsedTimeMs(long start)
start - the start timepublic static void executeSqlAutoCommit(java.sql.Connection connection,
java.lang.String sql)
throws java.sql.SQLException
connection - the connection to initializesql - the SQL to executejava.sql.SQLException - throws if the init SQL execution failspublic static void quietlySleep(long millis)
public static <T> T createInstance(java.lang.String className,
java.lang.Class<T> clazz,
java.lang.Object... args)
public static java.util.concurrent.ThreadPoolExecutor createThreadPoolExecutor(int queueSize,
java.lang.String threadName,
java.util.concurrent.ThreadFactory threadFactory)
Copyright © 2014 Zaxxer.com. All Rights Reserved.