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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Set group ID for further event logging.

    Methods inherited from class com.flurry.android.impl.core.performance.HttpLogging.FlurryHttpEventListener.FlurryHttpFactory

    create

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Factory

      public Factory(String id)
  • Method Details

    • setId

      public void setId(String id)
      Set group ID for further event logging.
      Overrides:
      setId in class com.flurry.android.impl.core.performance.HttpLogging.FlurryHttpEventListener.FlurryHttpFactory
      Parameters:
      id - the group ID