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

    Nested Classes
    Modifier and Type
    Class
    Description
    static 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

    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

    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

    Methods inherited from class java.lang.Object

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

    • HttpEventListener

      public HttpEventListener(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
      Parameters:
      id - the group ID