Interface ITransport

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    AsyncHttpTransport, NoOpTransport, StdoutTransport

    public interface ITransport
    extends java.io.Closeable
    A transport is in charge of sending the event to the Sentry server.
    • 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