Package io.sentry.transport
Interface ITransport
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
ApacheHttpClientTransport
,AsyncHttpTransport
,NoOpTransport
,StdoutTransport
A transport is in charge of sending the event to the Sentry server.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(boolean isRestarting) Closes the transport.void
flush
(long timeoutMillis) Flushes events queued up, but keeps the client enabled.@Nullable RateLimiter
default boolean
default void
send
(@NotNull SentryEnvelope envelope) void
send
(@NotNull SentryEnvelope envelope, @NotNull Hint hint)
-
Method Details
-
send
void send(@NotNull @NotNull SentryEnvelope envelope, @NotNull @NotNull Hint hint) throws IOException - Throws:
IOException
-
send
- Throws:
IOException
-
isHealthy
default boolean isHealthy() -
flush
void flush(long timeoutMillis) Flushes events queued up, but keeps the client enabled. Not implemented yet.- Parameters:
timeoutMillis
- time in milliseconds
-
getRateLimiter
-
close
Closes the transport.- Parameters:
isRestarting
- if true, avoids locking the main thread by dropping the current connection.- Throws:
IOException
-