Interface Connection
- All Superinterfaces:
CommandScheduler
A connection capable of scheduling commands.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose(ConnectionContext holder, Completable<Void> promise) database()voidinit(ConnectionContext context) Initialize the connection with the context for its usage.default booleanbooleanisSsl()booleanisValid()metrics()default intserver()default Stringsystem()default Connectionunwrap()user()Methods inherited from interface CommandScheduler
schedule, schedule
-
Method Details
-
isIndeterminatePreparedStatementError
- Returns:
truewhenerroris an indeterminate data type reported when preparing a statement
-
tracingPolicy
TracingPolicy tracingPolicy()- Returns:
- The connection tracing policy
-
metrics
ClientMetrics metrics()- Returns:
- The connection client metrics
-
server
SocketAddress server()- Returns:
- the known server address
-
system
- Returns:
- a database specific discriminant / identifier
-
database
String database()- Returns:
- the database name
-
user
String user()- Returns:
- the database user
-
init
Initialize the connection with the context for its usage.- Parameters:
context- the context
-
close
-
isSsl
boolean isSsl()- Returns:
- whether the underlying transport uses TLS
-
isValid
boolean isValid()- Returns:
- whether the connection is valid
-
pipeliningLimit
default int pipeliningLimit()- Returns:
- the connection pipelining limit, that is how many queries can be scheduled on this connection
-
databaseMetadata
DatabaseMetadata databaseMetadata()- Returns:
- the metadata
-
unwrap
- Returns:
- the most unwrapped connection (e.g. for pooled connections)
-