Class StdoutTransport

java.lang.Object
io.sentry.transport.StdoutTransport
All Implemented Interfaces:
ITransport, Closeable, AutoCloseable

public final class StdoutTransport extends Object implements ITransport
  • Constructor Details

    • StdoutTransport

      public StdoutTransport(@NotNull @NotNull ISerializer serializer)
  • Method Details

    • send

      public void send(@NotNull @NotNull SentryEnvelope envelope, @NotNull @NotNull Hint hint) throws IOException
      Specified by:
      send in interface ITransport
      Throws:
      IOException
    • flush

      public void flush(long timeoutMillis)
      Description copied from interface: ITransport
      Flushes events queued up, but keeps the client enabled. Not implemented yet.
      Specified by:
      flush in interface ITransport
      Parameters:
      timeoutMillis - time in milliseconds
    • getRateLimiter

      @Nullable public @Nullable RateLimiter getRateLimiter()
      Specified by:
      getRateLimiter in interface ITransport
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • close

      public void close(boolean isRestarting)
      Description copied from interface: ITransport
      Closes the transport.
      Specified by:
      close in interface ITransport
      Parameters:
      isRestarting - if true, avoids locking the main thread by dropping the current connection.