RequestFinishedInfo.Listener

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
onRequestFinished(RequestFinishedInfo requestInfo)
Invoked with request info.

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

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.