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](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/NetworkQualityRttListener.html#NetworkQualityRttListener(java.util.concurrent.Executor))(Executor executor) |

### Public Method Summary

|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Executor      | [getExecutor](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/NetworkQualityRttListener.html#getExecutor())()                                                                                                          |
| abstract void | [onRttObservation](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/NetworkQualityRttListener.html#onRttObservation(int,%20long,%20int))(int rttMs, long whenMs, int source) Reports a new round trip time observation. |

### Inherited Method Summary

From class java.lang.Object  

|------------------|---------------------------|
| Object           | clone()                   |
| boolean          | equals(Object arg0)       |
| void             | finalize()                |
| final Class\<?\> | getClass()                |
| int              | hashCode()                |
| final void       | notify()                  |
| final void       | notifyAll()               |
| String           | toString()                |
| final void       | wait(long arg0, int arg1) |
| final void       | wait(long arg0)           |
| final void       | wait()                    |

## Public Constructors

#### public**NetworkQualityRttListener**(Executor executor)

<br />

##### Parameters

| executor | The executor on which the observations are reported. |
|----------|------------------------------------------------------|

## Public Methods

#### public Executor**getExecutor**()

<br />

#### 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`.  |
|--------|----------------------------------------------------------------|