interface RequestTracker
Tracks request execution for a Client
.
A RequestTracker
can be configured in the client options. The Client
will execute
RequestTracker#onSuccess
or RequestTracker#onError
for every query or batch
executed (QUERY, EXECUTE and BATCH requests).
Methods
onError
(Host
host, String
or Array
query, Array
, Object
or null
parameters, ExecutionOptions
executionOptions, Number
requestLength, Error
err, Array
<Number
> latency)
Invoked each time a query or batch request fails.
onSuccess
(Host
host, String
or Array
query, Array
, Object
or null
parameters, ExecutionOptions
executionOptions, Number
requestLength, Number
responseLength, Array
<Number
> latency)
Invoked each time a query or batch request succeeds.
shutdown
()Invoked when the Client is being shutdown.