Package com.helixframework.okhttp.sla
Class ServiceLevelAgreementInterceptor
java.lang.Object
com.helixframework.okhttp.sla.ServiceLevelAgreementInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
OkHttp interceptor that executes an action if the SLA has been breached by downstream server.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating new instances ofServiceLevelAgreementInterceptor.Nested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
Fields inherited from interface okhttp3.Interceptor
Companion -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forServiceLevelAgreementInterceptor.okhttp3.Responseintercept(okhttp3.Interceptor.Chain chain)
-
Method Details
-
builder
Creates a builder forServiceLevelAgreementInterceptor.- Returns:
- a
ServiceLevelAgreementInterceptor.Builder
-
intercept
@NotNull public okhttp3.Response intercept(@NotNull okhttp3.Interceptor.Chain chain) throws IOException - Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-