public abstract class

NetworkQualityRttListener

extends Object
java.lang.Object
   ↳ org.chromium.net.NetworkQualityRttListener

Class Overview

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
NetworkQualityRttListener(Executor executor)
Public Methods
Executor getExecutor()
abstract void onRttObservation(int rttMs, long whenMs, int source)
Reports a new round trip time observation.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NetworkQualityRttListener (Executor executor)

Parameters
executor Executor: The executor on which the observations are reported.

Public Methods

public Executor getExecutor ()

Returns
Executor

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

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.