public interface ConnectionInfo
Connection related information.| Modifier and Type | Method and Description |
|---|---|
int |
getCommitCount()
Returns how many times
Connection.commitTransaction() method is called. |
String |
getConnectionId()
Get ID for the connection.
|
io.r2dbc.spi.Connection |
getOriginalConnection()
Retrieve original
Connection. |
int |
getRollbackCount()
Returns how many times
Connection.rollbackTransaction() method is called. |
int |
getTransactionCount()
Returns how many times
Connection.beginTransaction() method is called. |
ValueStore |
getValueStore()
Retrieve
ValueStore which is associated to the scope of logical connection. |
void |
incrementCommitCount()
Increment commit count.
|
void |
incrementRollbackCount()
Increment rollback count.
|
void |
incrementTransactionCount()
Increment transaction count.
|
boolean |
isClosed()
Returns whether connection is closed or not.
|
void |
setClosed(boolean closed)
Set
boolean to indicate whether the connection is closed or not. |
@Nullable io.r2dbc.spi.Connection getOriginalConnection()
Connection.null is returned when ConnectionInfo is evaluated
before it is associated with an actual connection, for example, during
ProxyExecutionListener.beforeMethod(MethodExecutionInfo) for
ConnectionFactory.create().@Nullable String getConnectionId()
null is returned when ConnectionInfo is evaluated
before it is associated with an actual connection, for example, during
ProxyExecutionListener.beforeMethod(MethodExecutionInfo) for
ConnectionFactory.create().ConnectionIdManagervoid incrementTransactionCount()
void incrementCommitCount()
void incrementRollbackCount()
int getTransactionCount()
Connection.beginTransaction() method is called.int getCommitCount()
Connection.commitTransaction() method is called.int getRollbackCount()
Connection.rollbackTransaction() method is called.boolean isClosed()
true if connection is closedvoid setClosed(boolean closed)
boolean to indicate whether the connection is closed or not.closed - set true if Connection is closedValueStore getValueStore()
ValueStore which is associated to the scope of logical connection.
Values can be stored or retrieved from this store while connection is available.
Copyright © 2025. All rights reserved.