|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Profiler<T>
A hook allowing clients to log HTTP method times and response status codes.
Nested Class Summary | |
---|---|
static class |
Profiler.RequestInformation
Information about the HTTP request. |
Method Summary | |
---|---|
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. |
Method Detail |
---|
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()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |