public class TransactionReconnectionEvent extends ConnectionEvent implements DurationAwareEvent
TransactionReconnectionEvent indicates that a JDBC Connection
is borrowed multiple times during the lifetime of a given JPA or Hibernate transaction.
Ideally, you should borrow a JDBC Connection from the pool only once
when executing a JPA or Hibernate transaction.Event.Priority| Constructor and Description |
|---|
TransactionReconnectionEvent(long connectionUsageTimeNanos,
String transactionStatus)
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 |
String |
getTransactionStatus()
Get the transaction status at the moment the connection was released.
|
getInfoUrlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInfoUrlpublic TransactionReconnectionEvent(long connectionUsageTimeNanos,
String transactionStatus)
connectionUsageTimeNanos - connection usage timetransactionStatus - connection usage timepublic long getConnectionUsageTimeNanos()
Connection in nanoseconds.Connection in nanosecondspublic String getTransactionStatus()
public 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.