public class StatementlessConnectionEvent extends ConnectionEvent implements DurationAwareEvent
StatementlessConnectionEvent indicates that a JDBC Connection
was borrowed without executing any SQL statement.
Borrowing a JDBC Connection from the pool without executing any SQL statement
should be avoided as it deprives other concurrent requests of using this connection.Event.Priority| Constructor and Description |
|---|
StatementlessConnectionEvent(long connectionUsageTimeNanos)
Instantiate the event using the provided parameters.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getConnectionUsageTimeMillis()
Get the usage time of the JDBC
Connection in milliseconds. |
long |
getConnectionUsageTimeNanos()
Get the usage time of the JDBC
Connection in nanoseconds. |
String |
getDescription()
|
long |
getDurationMillis()
Get the duration, in milliseconds, associated with this
Event. |
Event.Priority |
getPriority()
Get the
Event.Priority of this Event |
getInfoUrlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInfoUrlpublic StatementlessConnectionEvent(long connectionUsageTimeNanos)
connectionUsageTimeNanos - connection usage timepublic long getConnectionUsageTimeNanos()
Connection in nanoseconds.Connection in nanosecondspublic long getConnectionUsageTimeMillis()
Connection in milliseconds.Connection in millisecondspublic long getDurationMillis()
Event.getDurationMillis in interface DurationAwareEventEventpublic Event.Priority getPriority()
Event.Priority of this EventgetPriority in interface EventEvent.Priority of this Eventpublic String getDescription()
getDescription in interface EventString description of this EventCopyright © 2026. All rights reserved.