public static abstract class
RequestFinishedInfo.Listener
extends Object
Listens for finished requests for the purpose of collecting metrics.
Public Constructor Summary
Listener(Executor executor)
|
Public Method Summary
Executor |
getExecutor()
Returns this listener's executor.
|
abstract void |
Inherited Method Summary
Public Constructors
public Listener (Executor executor)
Parameters
executor |
---|
Public Methods
public Executor getExecutor ()
Returns this listener's executor. Can be called on any thread.
Returns
- this listener's
Executor
public abstract void onRequestFinished (RequestFinishedInfo requestInfo)
Invoked with request info. Will be called in a task submitted to the Executor
returned by getExecutor()
.
Parameters
requestInfo | RequestFinishedInfo for finished request.
|
---|