public final class

LatencyConnectionProvider

extends Object
implements ConnectionProvider
java.lang.Object
   ↳ com.atlassian.confluence.util.db.LatencyConnectionProvider

Class Overview

A hibernate connection provider that can be configured to return connections that impose a simulated latency on db operations.

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.

Summary

Public Constructors
LatencyConnectionProvider()
Public Methods
void close()
void closeConnection(Connection connection)
void configure(Properties properties)
Connection getConnection()
[Expand]
Inherited Methods
From class java.lang.Object
From interface net.sf.hibernate.connection.ConnectionProvider

Public Constructors

public LatencyConnectionProvider ()

Public Methods

public void close ()

Throws
HibernateException

public void closeConnection (Connection connection)

Throws
SQLException

public void configure (Properties properties)

Throws
HibernateException

public Connection getConnection ()

Throws
SQLException