Class ConnectionStoreManager
java.lang.Object
org.kawanfw.sql.api.server.connectionstore.ConnectionStoreManager
public class ConnectionStoreManager extends Object
Class that allows to manage the server Connection Store that stores in memory
the JDBC Connections of the client users during their session.
Class allows to:
- Retrieve all the
ConnectionKeyof the Connection Store. - Retrieve the age of JDBC
Connectionstored in the Connection Store. - Remove a JDBC
Connectionfrom the Connection Store and release it into the connection pool.
- Since:
- 1.0
- Author:
- Nicolas de Pomereu
-
Method Summary
Modifier and Type Method Description static Set<ConnectionKey>getKeys()Returns the keys of the Connection Store.static voidremove(ConnectionKey connectionKey, DatabaseConfigurator databaseConfigurator)Removes from the Connection Store a JDBCConnectionidentified by aConnectionKeyand release it in the connection pool.static intsize()Returns the size of the Connection Store
-
Method Details
-
getKeys
Returns the keys of the Connection Store.- Returns:
- the keys of the Connection Store
-
remove
public static void remove(ConnectionKey connectionKey, DatabaseConfigurator databaseConfigurator) throws SQLExceptionRemoves from the Connection Store a JDBCConnectionidentified by aConnectionKeyand release it in the connection pool.- Parameters:
connectionKey- the key of the Connection StoredatabaseConfigurator- the SQL Configurator- Throws:
SQLException- if any SQL Exception
-
size
public static int size()Returns the size of the Connection Store- Returns:
- the size of the Connection Store
-