Class ApacheHttpClientTransport

java.lang.Object
io.sentry.transport.apache.ApacheHttpClientTransport
All Implemented Interfaces:
io.sentry.transport.ITransport, Closeable, AutoCloseable

public final class ApacheHttpClientTransport extends Object implements io.sentry.transport.ITransport
ITransport implementation that executes request asynchronously in a non-blocking manner using Apache Http Client 5.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ApacheHttpClientTransport(@NotNull io.sentry.SentryOptions options, @NotNull io.sentry.RequestDetails requestDetails, @NotNull org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient httpclient, @NotNull io.sentry.transport.RateLimiter rateLimiter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    flush(long timeoutMillis)
     
    void
    send(@NotNull io.sentry.SentryEnvelope envelope, @NotNull io.sentry.Hint hint)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface io.sentry.transport.ITransport

    send
  • Constructor Details

    • ApacheHttpClientTransport

      public ApacheHttpClientTransport(@NotNull @NotNull io.sentry.SentryOptions options, @NotNull @NotNull io.sentry.RequestDetails requestDetails, @NotNull @NotNull org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient httpclient, @NotNull @NotNull io.sentry.transport.RateLimiter rateLimiter)
  • Method Details

    • send

      public void send(@NotNull @NotNull io.sentry.SentryEnvelope envelope, @NotNull @NotNull io.sentry.Hint hint) throws IOException
      Specified by:
      send in interface io.sentry.transport.ITransport
      Throws:
      IOException
    • flush

      public void flush(long timeoutMillis)
      Specified by:
      flush in interface io.sentry.transport.ITransport
    • close

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