public static abstract class**RequestFinishedInfo.Listener** extends Object  
Listens for finished requests for the purpose of collecting metrics.  

### Public Constructor Summary

|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   | [Listener](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/RequestFinishedInfo.Listener.html#Listener(java.util.concurrent.Executor))(Executor executor) |

### Public Method Summary

|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Executor      | [getExecutor](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/RequestFinishedInfo.Listener.html#getExecutor())() Returns this listener's executor.                                                                                                                                                                                         |
| abstract void | [onRequestFinished](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/RequestFinishedInfo.Listener.html#onRequestFinished(org.chromium.net.RequestFinishedInfo))([RequestFinishedInfo](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/RequestFinishedInfo.html)requestInfo) Invoked with request info. |

### 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**Listener**(Executor executor)

<br />

##### Parameters

| executor |   |
|----------|---|

## Public Methods

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

Returns this listener's executor. Can be called on any thread.  

##### Returns

- this listener's[Executor](https://developer.android.com/develop/connectivity/cronet/reference/java/util/concurrent/Executor.html)  

#### public abstract void**onRequestFinished**([RequestFinishedInfo](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/RequestFinishedInfo.html)requestInfo)

Invoked with request info. Will be called in a task submitted to the[Executor](https://developer.android.com/develop/connectivity/cronet/reference/java/util/concurrent/Executor.html)returned by[getExecutor()](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/RequestFinishedInfo.Listener.html#getExecutor()).  

##### Parameters

| requestInfo | [RequestFinishedInfo](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/RequestFinishedInfo.html)for finished request. |
|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|