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 Details

    • EmptyCallback

      protected EmptyCallback()
  • Method Details

    • getEmptyCallback

      public static okhttp3.Callback getEmptyCallback()
    • onFailure

      public void onFailure(okhttp3.Call call, IOException e)
      Specified by:
      onFailure in interface okhttp3.Callback
    • onResponse

      public void onResponse(okhttp3.Call call, okhttp3.Response response) throws IOException
      Specified by:
      onResponse in interface okhttp3.Callback
      Throws:
      IOException