Package io.sentry
Interface ISentryExecutorService
- All Known Implementing Classes:
SentryExecutorService
@Internal
public interface ISentryExecutorService
Sentry Executor Service that sends cached events and envelopes on App. start.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(long timeoutMillis) Closes the ThreadExecutor and awaits for the timeoutboolean
isClosed()
Check if there was a previous call to the close() method.@NotNull Future<?>
@NotNull Future<?>
Submits a Runnable to the ThreadExecutor<T> @NotNull Future<T>
Submits a Callable to the ThreadExecutor
-
Method Details
-
submit
@NotNull @NotNull Future<?> submit(@NotNull @NotNull Runnable runnable) throws RejectedExecutionException Submits a Runnable to the ThreadExecutor- Parameters:
runnable
- the Runnable- Returns:
- a Future of the Runnable
- Throws:
RejectedExecutionException
-
submit
@NotNull <T> @NotNull Future<T> submit(@NotNull @NotNull Callable<T> callable) throws RejectedExecutionException Submits a Callable to the ThreadExecutor- Parameters:
callable
- the Callable- Returns:
- a Future of the Callable
- Throws:
RejectedExecutionException
-
schedule
@NotNull @NotNull Future<?> schedule(@NotNull @NotNull Runnable runnable, long delayMillis) throws RejectedExecutionException - Throws:
RejectedExecutionException
-
close
void close(long timeoutMillis) Closes the ThreadExecutor and awaits for the timeout- Parameters:
timeoutMillis
- the timeout in millis
-
isClosed
boolean isClosed()Check if there was a previous call to the close() method.- Returns:
- If the executorService was previously closed
-