public final class Connections extends Object
Uses HikariCP as the underlying connection pool.
| Modifier and Type | Method and Description |
|---|---|
static int |
getActiveConnectionCount()
Gets the active connection count.
|
static Connection |
getConnection()
Gets a connection.
|
static int |
getMaxConnectionCount()
Gets the max connection count.
|
static int |
getTotalConnectionCount()
Gets the total connection count.
|
static void |
shutdownConnectionPool()
Shutdowns the connection pool.
|
public static int getTotalConnectionCount()
public static int getMaxConnectionCount()
public static int getActiveConnectionCount()
public static Connection getConnection() throws SQLException
SQLException - SQL exceptionpublic static void shutdownConnectionPool()
Copyright © 2009–2019 B3log. All rights reserved.