Package io.sentry.transport
Interface ITransport
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
AsyncHttpTransport,NoOpTransport,StdoutTransport
A transport is in charge of sending the event to the Sentry server.
-
Method Summary
Modifier and TypeMethodDescriptionvoidflush(long timeoutMillis) Flushes events queued up, but keeps the client enabled.@Nullable RateLimiterdefault booleandefault voidsend(@NotNull SentryEnvelope envelope) voidsend(@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
-