Class DefaultHttpClientTelemetryCollectingResponseBodyWrapper

java.lang.Object
java.util.concurrent.atomic.AtomicBoolean
ru.tinkoff.kora.http.client.common.telemetry.DefaultHttpClientTelemetryCollectingResponseBodyWrapper
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, Flow.Publisher<ByteBuffer>, ru.tinkoff.kora.http.common.body.HttpBody, ru.tinkoff.kora.http.common.body.HttpBodyInput

public final class DefaultHttpClientTelemetryCollectingResponseBodyWrapper extends AtomicBoolean implements ru.tinkoff.kora.http.common.body.HttpBodyInput
See Also:
  • Constructor Details

  • Method Details

    • contentLength

      public long contentLength()
      Specified by:
      contentLength in interface ru.tinkoff.kora.http.common.body.HttpBody
    • contentType

      @Nullable public String contentType()
      Specified by:
      contentType in interface ru.tinkoff.kora.http.common.body.HttpBody
    • subscribe

      public void subscribe(Flow.Subscriber<? super ByteBuffer> subscriber)
      Specified by:
      subscribe in interface Flow.Publisher<ByteBuffer>
      Specified by:
      subscribe in interface ru.tinkoff.kora.http.common.body.HttpBodyInput
    • asInputStream

      public InputStream asInputStream()
      Specified by:
      asInputStream in interface ru.tinkoff.kora.http.common.body.HttpBodyInput
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException