Package org.apache.flink.metrics.datadog
Class DatadogHttpClient.EmptyCallback
- java.lang.Object
-
- org.apache.flink.metrics.datadog.DatadogHttpClient.EmptyCallback
-
- All Implemented Interfaces:
okhttp3.Callback
- Enclosing class:
- DatadogHttpClient
protected static class DatadogHttpClient.EmptyCallback extends Object implements okhttp3.Callback
A handler for OkHttpClient callback. In case of error or failure it logs the error at warning level.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEmptyCallback()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static okhttp3.CallbackgetEmptyCallback()voidonFailure(okhttp3.Call call, IOException e)voidonResponse(okhttp3.Call call, okhttp3.Response response)
-
-
-
Method Detail
-
getEmptyCallback
public static okhttp3.Callback getEmptyCallback()
-
onFailure
public void onFailure(okhttp3.Call call, IOException e)- Specified by:
onFailurein interfaceokhttp3.Callback
-
onResponse
public void onResponse(okhttp3.Call call, okhttp3.Response response) throws IOException- Specified by:
onResponsein interfaceokhttp3.Callback- Throws:
IOException
-
-