java.lang.Object
io.opentelemetry.instrumentation.httpclient.internal.ResponseConsumer
All Implemented Interfaces:
BiConsumer<java.net.http.HttpResponse<?>,Throwable>

public class ResponseConsumer extends Object implements BiConsumer<java.net.http.HttpResponse<?>,Throwable>
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ResponseConsumer(io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<java.net.http.HttpRequest,java.net.http.HttpResponse<?>> instrumenter, io.opentelemetry.context.Context context, java.net.http.HttpRequest httpRequest)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(java.net.http.HttpResponse<?> httpResponse, Throwable throwable)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.BiConsumer

    andThen
  • Constructor Details

    • ResponseConsumer

      public ResponseConsumer(io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<java.net.http.HttpRequest,java.net.http.HttpResponse<?>> instrumenter, io.opentelemetry.context.Context context, java.net.http.HttpRequest httpRequest)
  • Method Details

    • accept

      public void accept(java.net.http.HttpResponse<?> httpResponse, Throwable throwable)
      Specified by:
      accept in interface BiConsumer<java.net.http.HttpResponse<?>,Throwable>