Package com.netflix.spinnaker.okhttp
Class OkHttpMetricsInterceptor
- java.lang.Object
-
- com.netflix.spinnaker.okhttp.OkHttpMetricsInterceptor
-
- All Implemented Interfaces:
com.squareup.okhttp.Interceptor
public class OkHttpMetricsInterceptor extends java.lang.Object implements com.squareup.okhttp.Interceptor
-
-
Constructor Summary
Constructors Constructor Description OkHttpMetricsInterceptor(javax.inject.Provider<com.netflix.spectator.api.Registry> registry, OkHttpMetricsInterceptorProperties okHttpMetricsInterceptorProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectdoIntercept(java.lang.Object chainObject)com.squareup.okhttp.Responseintercept(com.squareup.okhttp.Interceptor.Chain chain)
-
-
-
Constructor Detail
-
OkHttpMetricsInterceptor
public OkHttpMetricsInterceptor(javax.inject.Provider<com.netflix.spectator.api.Registry> registry, OkHttpMetricsInterceptorProperties okHttpMetricsInterceptorProperties)
-
-
Method Detail
-
intercept
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws java.io.IOException- Specified by:
interceptin interfacecom.squareup.okhttp.Interceptor- Throws:
java.io.IOException
-
doIntercept
protected final java.lang.Object doIntercept(java.lang.Object chainObject) throws java.io.IOException- Throws:
java.io.IOException
-
-