public interface Profiler<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Profiler.RequestInformation
Information about the HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterCall(Profiler.RequestInformation requestInfo,
long elapsedTime,
int statusCode,
T beforeCallData)
Invoked after an HTTP method completes.
|
T |
beforeCall()
Invoked before an HTTP method call.
|
T beforeCall()
afterCall(retrofit.Profiler.RequestInformation, long, int, T) when the call returns.
This method gives implementers the opportunity to include information that may
change during the server call in afterCall logic.
void afterCall(Profiler.RequestInformation requestInfo, long elapsedTime, int statusCode, T beforeCallData)
requestInfo - information about the originating HTTP request.elapsedTime - time in milliseconds it took the HTTP request to complete.statusCode - response status code.beforeCallData - the data returned by the corresponding beforeCall().Copyright © 2014 Square, Inc.. All Rights Reserved.