public static interface Session.State
Modifier and Type | Method and Description |
---|---|
Collection<Host> |
getConnectedHosts()
The hosts to which the session is currently connected (more precisely, at the time
this State has been grabbed).
|
int |
getInFlightQueries(Host host)
The number of queries that are currently being executed though a given host.
|
int |
getOpenConnections(Host host)
The number of open connections to a given host.
|
Session |
getSession()
The Session to which this State corresponds to.
|
int |
getTrashedConnections(Host host)
The number of "trashed" connections to a given host.
|
Session getSession()
Collection<Host> getConnectedHosts()
getOpenConnections
return 0, if the
pool itself is created but not connections have been successfully opened yet.int getOpenConnections(Host host)
getTrashedConnections(Host)
.host
- the host to get open connections for.host
. If the session
is not connected to that host, 0 is returned.int getTrashedConnections(Host host)
PoolingOptions.getIdleTimeoutSeconds()
), in case the load
goes up again. This method counts connections in that state.host
- the host to get trashed connections for.host
. If the session
is not connected to that host, 0 is returned.int getInFlightQueries(Host host)
State
was grabbed at least).host
- the host to get in-flight queries for.host
.