Package io.sentry.transport
Interface ITransport
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
AsyncHttpTransport,NoOpTransport,StdoutTransport
public interface ITransport extends java.io.CloseableA transport is in charge of sending the event to the Sentry server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidflush(long timeoutMillis)Flushes events queued up, but keeps the client enabled.default voidsend(@NotNull SentryEnvelope envelope)voidsend(@NotNull SentryEnvelope envelope, @Nullable java.lang.Object hint)
-
-
-
Method Detail
-
send
void send(@NotNull @NotNull SentryEnvelope envelope, @Nullable @Nullable java.lang.Object hint) throws java.io.IOException- Throws:
java.io.IOException
-
send
default void send(@NotNull @NotNull SentryEnvelope envelope) throws java.io.IOException- Throws:
java.io.IOException
-
flush
void flush(long timeoutMillis)
Flushes events queued up, but keeps the client enabled. Not implemented yet.- Parameters:
timeoutMillis- time in milliseconds
-
-