Class NoOpConnectionTracker
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.connection.jdbc.NoOpConnectionTracker
- All Implemented Interfaces:
ConnectionTracker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
forEach
(BiConsumer<Connection, Thread> biConsumer) Performs an iteration on all currently active connections, and performs the operationint
Returns count of leased active JDBC connectionstrack
(Connection connection) Returns a tracked connection, and keeps a track of it untilConnection.close()
is invoked
-
Constructor Details
-
NoOpConnectionTracker
public NoOpConnectionTracker()
-
-
Method Details
-
getConnectionCount
public int getConnectionCount()Description copied from interface:ConnectionTracker
Returns count of leased active JDBC connections- Specified by:
getConnectionCount
in interfaceConnectionTracker
-
forEach
Description copied from interface:ConnectionTracker
Performs an iteration on all currently active connections, and performs the operation- Specified by:
forEach
in interfaceConnectionTracker
-
track
Description copied from interface:ConnectionTracker
Returns a tracked connection, and keeps a track of it untilConnection.close()
is invoked- Specified by:
track
in interfaceConnectionTracker
- Parameters:
connection
- to be tracked- Returns:
- tracked connection
-