Package io.sentry

Interface ISentryExecutorService


@Internal public interface ISentryExecutorService
Sentry Executor Service that sends cached events and envelopes on App. start.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(long timeoutMillis)
    Closes the ThreadExecutor and awaits for the timeout
    @NotNull Future<?>
    schedule(@NotNull Runnable runnable, long delayMillis)
     
    @NotNull Future<?>
    submit(@NotNull Runnable runnable)
    Submits a Runnable to the ThreadExecutor
    <T> @NotNull Future<T>
    submit(@NotNull Callable<T> callable)
    Submits a Callable to the ThreadExecutor
  • Method Details

    • submit

      @NotNull @NotNull Future<?> submit(@NotNull @NotNull Runnable runnable)
      Submits a Runnable to the ThreadExecutor
      Parameters:
      runnable - the Runnable
      Returns:
      a Future of the Runnable
    • submit

      @NotNull <T> @NotNull Future<T> submit(@NotNull @NotNull Callable<T> callable)
      Submits a Callable to the ThreadExecutor
      Parameters:
      callable - the Callable
      Returns:
      a Future of the Callable
    • schedule

      @NotNull @NotNull Future<?> schedule(@NotNull @NotNull Runnable runnable, long delayMillis)
    • close

      void close(long timeoutMillis)
      Closes the ThreadExecutor and awaits for the timeout
      Parameters:
      timeoutMillis - the timeout in millis