Package com.netflix.spinnaker.okhttp
Class OkHttp3MetricsInterceptor
java.lang.Object
com.netflix.spinnaker.okhttp.OkHttp3MetricsInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
Fields inherited from interface okhttp3.Interceptor
Companion -
Constructor Summary
ConstructorsConstructorDescriptionOkHttp3MetricsInterceptor(javax.inject.Provider<com.netflix.spectator.api.Registry> registry, OkHttpMetricsInterceptorProperties okHttpMetricsInterceptorProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdoIntercept(Object chainObject) okhttp3.Responseintercept(okhttp3.Interceptor.Chain chain)
-
Constructor Details
-
OkHttp3MetricsInterceptor
public OkHttp3MetricsInterceptor(javax.inject.Provider<com.netflix.spectator.api.Registry> registry, OkHttpMetricsInterceptorProperties okHttpMetricsInterceptorProperties)
-
-
Method Details
-
intercept
- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-
doIntercept
- Throws:
IOException
-