public interface DatabaseDiagnosticsCollector
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled() |
<T> T |
recordExecutionTime(SqlOperation<T> operation,
String sql)
Wraps the
SqlOperation in timings using System.nanoTime() for timings. |
void |
removeTrackedConnection(Connection connection)
Remove connection from tracking.
|
void |
trackConnection(Connection connection)
Track this connection and raise an alert if abandoned by the caller.
|
boolean isEnabled()
void trackConnection(Connection connection)
connection - the connection to monitor.void removeTrackedConnection(Connection connection)
connection - the connection being tracked<T> T recordExecutionTime(SqlOperation<T> operation, String sql) throws SQLException
SqlOperation in timings using System.nanoTime() for timings.T - is the type returned from the database operationoperation - is the wrapped database operationsql - is the SQL query stringSQLException - if the operation failed to executeCopyright © 2017–2019 Atlassian. All rights reserved.