public interface ConnectionContext
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.sql.Connection |
getConnection()
Get the connection associated with this context.
|
boolean |
isActive()
Check if this context is currently active.
|
boolean |
isNodeUnhealthy()
Check if the database node is unhealthy.
|
void |
setInactive()
Mark this context as inactive and release any connection references.
|
void |
setNodeUnhealthy(boolean nodeUnhealthy)
Set the health status of the database node.
|
boolean |
shouldAbort()
Check if the connection should be aborted due to node failure.
|
boolean isNodeUnhealthy()
void setNodeUnhealthy(boolean nodeUnhealthy)
nodeUnhealthy - true if the node is unhealthy, false otherwiseboolean shouldAbort()
void setInactive()
@Nullable java.sql.Connection getConnection()
boolean isActive()