class ClientState
Represents the state of a Client
.
Exposes information on the connections maintained by a Client at a specific time.
Constructor
Methods
getConnectedHosts
()Get an array of hosts to which the client is connected to.
getInFlightQueries
(Host
host)
Gets the amount of queries that are currently being executed through a given host.
This corresponds to the number of queries that have been sent by the Client to server Host on one of its connections but haven’t yet obtained a response.
getOpenConnections
(Host
host)
Gets the amount of open connections to a given host.
toString
()Returns the string representation of the instance.