public final class LatencyConnectionProvider extends Object implements net.sf.hibernate.connection.ConnectionProvider
The desired latency may be configured via the latency.connection.latency.ms property.
*NOTE:* This class was refactored to use a dynamic proxy in an attempt to be backwards compatible even when Sun decide to change the API for these fundamental JDBC classes. It's designed to only be used for test environements.
| Constructor and Description | 
|---|
| LatencyConnectionProvider() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| void | closeConnection(Connection connection) | 
| void | configure(Properties properties) | 
| Connection | getConnection() | 
public void configure(Properties properties) throws net.sf.hibernate.HibernateException
configure in interface net.sf.hibernate.connection.ConnectionProvidernet.sf.hibernate.HibernateExceptionpublic Connection getConnection() throws SQLException
getConnection in interface net.sf.hibernate.connection.ConnectionProviderSQLExceptionpublic void closeConnection(Connection connection) throws SQLException
closeConnection in interface net.sf.hibernate.connection.ConnectionProviderSQLExceptionpublic void close()
           throws net.sf.hibernate.HibernateException
close in interface net.sf.hibernate.connection.ConnectionProvidernet.sf.hibernate.HibernateExceptionCopyright © 2003–2022 Atlassian. All rights reserved.