NetworkQualityRttListener

abstract class NetworkQualityRttListener


Watches observations of various round trip times (RTTs) at various layers of the network stack. These include RTT estimates by QUIC and TCP, as well as the time between when a URL request is sent and when the first byte of the response is received.

Summary

Public constructors

Public functions

Executor!
abstract Unit
onRttObservation(rttMs: Int, whenMs: Long, source: Int)

Reports a new round trip time observation.

Public constructors

NetworkQualityRttListener

NetworkQualityRttListener(executor: Executor!)
Parameters
executor: Executor!

The executor on which the observations are reported.

Public functions

getExecutor

fun getExecutor(): Executor!

onRttObservation

abstract fun onRttObservation(rttMs: Int, whenMs: Long, source: Int): Unit

Reports a new round trip time observation.

Parameters
rttMs: Int

the round trip time in milliseconds.

whenMs: Long

milliseconds since the Epoch (January 1st 1970, 00:00:00.000).

source: Int

the observation source from NetworkQualityObservationSource.