Package io.sentry.transport.apache
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
ConstructorsConstructorDescriptionApacheHttpClientTransport(@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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
sendin interfaceio.sentry.transport.ITransport- Throws:
IOException
-
flush
public void flush(long timeoutMillis) - Specified by:
flushin interfaceio.sentry.transport.ITransport
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-