Package com.flurry.android
Class FlurryPerformance.HttpEventListener.Factory
java.lang.Object
com.flurry.android.impl.core.performance.HttpLogging.FlurryHttpEventListener.FlurryHttpFactory
com.flurry.android.FlurryPerformance.HttpEventListener.Factory
- All Implemented Interfaces:
okhttp3.EventListener.Factory
- Enclosing class:
- FlurryPerformance.HttpEventListener
public static class FlurryPerformance.HttpEventListener.Factory
extends com.flurry.android.impl.core.performance.HttpLogging.FlurryHttpEventListener.FlurryHttpFactory
Provide an HttpEventListener.Factory for Flurry that users can add for their OkHttpClient.
By using the EventListener.Factory approach, 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()
.eventListenerFactory(new FlurryPerformance.HttpEventListener.Factory(MyGroupID))
.build();
The same instance of FlurryPerformance.HttpEventListener.Factory can be used
multiple times for eventListenerFactory.-
Constructor Summary
-
Method Summary
Methods inherited from class com.flurry.android.impl.core.performance.HttpLogging.FlurryHttpEventListener.FlurryHttpFactory
create
-
Constructor Details
-
Factory
-
-
Method Details
-
setId
Set group ID for further event logging.- Overrides:
setId
in classcom.flurry.android.impl.core.performance.HttpLogging.FlurryHttpEventListener.FlurryHttpFactory
- Parameters:
id
- the group ID
-