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. |
io.r2dbc.spi.Connection getOriginalConnection()
Connection
.String getConnectionId()
ConnectionIdManager
void 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 © 2024. All rights reserved.