NetworkQualityRttListener

public abstract class NetworkQualityRttListener extends Object

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.

Public Constructor Summary

NetworkQualityRttListener(Executor executor)

Public Method Summary

Executor
abstract void
onRttObservation(int rttMs, long whenMs, int source)
Reports a new round trip time observation.

Inherited Method Summary

Public Constructors

public NetworkQualityRttListener (Executor executor)

Parameters
executor The executor on which the observations are reported.

Public Methods

public Executor getExecutor ()

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

Reports a new round trip time observation.

Parameters
rttMs the round trip time in milliseconds.
whenMs milliseconds since the Epoch (January 1st 1970, 00:00:00.000).
source the observation source from NetworkQualityObservationSource.