public interface LatencyTracker
Cluster.register(com.datastax.driver.core.Host.StateListener)method, after which the
update(Host, Statement, Exception, long)method will be called after each query of the driver to a Cassandra host with the latency/duration (in nanoseconds) of this operation.
host- The Cassandra host on which a request has been performed. This parameter is never
Statementthat has been executed. This parameter is never
Exceptionthrown when receiving the response, or
nullif the response was successful.
newLatencyNanos- the latency in nanoseconds of the operation. This latency corresponds to the time elapsed between when the query was sent to
hostand when the response was received by the driver (or the operation timed out, in which
newLatencyNanoswill approximately be the timeout value).