Package org.hibernate.testing.jdbc.leak
Class OracleIdleConnectionCounter
java.lang.Object
org.hibernate.testing.jdbc.leak.OracleIdleConnectionCounter
- All Implemented Interfaces:
IdleConnectionCounter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanSpecifies which Dialect the counter applies to.intcount(Connection connection) Count the number of idle connections.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
OracleIdleConnectionCounter
public OracleIdleConnectionCounter()
-
-
Method Details
-
appliesTo
Description copied from interface:IdleConnectionCounterSpecifies which Dialect the counter applies to.- Specified by:
appliesToin interfaceIdleConnectionCounter- Parameters:
dialect- dialect- Returns:
- applicability.
-
count
Description copied from interface:IdleConnectionCounterCount the number of idle connections.- Specified by:
countin interfaceIdleConnectionCounter- Parameters:
connection- current JDBC connection to be used for querying the number of idle connections.- Returns:
- idle connection count.
-