NetworkQualityRttListener

public 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 methods

Executor
abstract void
onRttObservation(int rttMs, long whenMs, int source)

Reports a new round trip time observation.

Public constructors

NetworkQualityRttListener

public NetworkQualityRttListener(Executor executor)
Parameters
Executor executor

The executor on which the observations are reported.

Public methods

getExecutor

public Executor getExecutor()

onRttObservation

public abstract void onRttObservation(int rttMs, long whenMs, int source)

Reports a new round trip time observation.

Parameters
int rttMs

the round trip time in milliseconds.

long whenMs

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

int source

the observation source from NetworkQualityObservationSource.