Package com.flurry.android
Class FlurryPerformance.HttpEventListener
java.lang.Object
okhttp3.EventListener
com.flurry.android.impl.core.performance.HttpLogging.FlurryHttpEventListener
com.flurry.android.FlurryPerformance.HttpEventListener
- Enclosing class:
- FlurryPerformance
public static class FlurryPerformance.HttpEventListener
extends com.flurry.android.impl.core.performance.HttpLogging.FlurryHttpEventListener
Use Event Listeners supported in okhttp3: provide an HttpEventListener for Flurry that users
can add for their OkHttpClient.
By using the EventListener, you will get timing metrics for total, redirect, dns-lookup,
connect, response, and total transfer time.
- total time: from call start to call end
- redirect time: total redirect time if any
- dns-lookup time: DNS lookup time
- connect time: connection initiating time
- response time: from request end to response start
- transfer time: from request end to response end
Example:
OkHttpClient client = new OkHttpClient.Builder()
.eventListener(new FlurryPerformance.HttpEventListener(MyGroupID))
.build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Provide an HttpEventListener.Factory for Flurry that users can add for their OkHttpClient.Nested classes/interfaces inherited from class com.flurry.android.impl.core.performance.HttpLogging.FlurryHttpEventListener
com.flurry.android.impl.core.performance.HttpLogging.FlurryHttpEventListener.FlurryHttpFactory
Nested classes/interfaces inherited from class okhttp3.EventListener
okhttp3.EventListener.Companion
-
Field Summary
Fields inherited from class okhttp3.EventListener
Companion, NONE
-
Constructor Summary
-
Method Summary
Methods inherited from class com.flurry.android.impl.core.performance.HttpLogging.FlurryHttpEventListener
callEnd, callFailed, callStart, connectEnd, connectStart, dnsEnd, dnsStart, requestBodyEnd, requestBodyStart, requestHeadersEnd, requestHeadersStart, responseBodyEnd, responseBodyStart, responseHeadersEnd, responseHeadersStart
Methods inherited from class okhttp3.EventListener
cacheConditionalHit, cacheHit, cacheMiss, canceled, connectFailed, connectionAcquired, connectionReleased, proxySelectEnd, proxySelectStart, requestFailed, responseFailed, satisfactionFailure, secureConnectEnd, secureConnectStart
-
Constructor Details
-
HttpEventListener
-
-
Method Details
-
setId
Set group ID for further event logging.- Overrides:
setId
in classcom.flurry.android.impl.core.performance.HttpLogging.FlurryHttpEventListener
- Parameters:
id
- the group ID
-