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.ConnectionProvider
net.sf.hibernate.HibernateException
public Connection getConnection() throws SQLException
getConnection
in interface net.sf.hibernate.connection.ConnectionProvider
SQLException
public void closeConnection(Connection connection) throws SQLException
closeConnection
in interface net.sf.hibernate.connection.ConnectionProvider
SQLException
public void close() throws net.sf.hibernate.HibernateException
close
in interface net.sf.hibernate.connection.ConnectionProvider
net.sf.hibernate.HibernateException
Copyright © 2003–2017 Atlassian. All rights reserved.