Package io.sentry
Class SentryExecutorService
java.lang.Object
io.sentry.SentryExecutorService
- All Implemented Interfaces:
ISentryExecutorService
-
Constructor Summary
-
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
-
Constructor Details
-
SentryExecutorService
public SentryExecutorService()
-
-
Method Details
-
submit
Description copied from interface:ISentryExecutorService
Submits a Runnable to the ThreadExecutor- Specified by:
submit
in interfaceISentryExecutorService
- Parameters:
runnable
- the Runnable- Returns:
- a Future of the Runnable
-
submit
Description copied from interface:ISentryExecutorService
Submits a Callable to the ThreadExecutor- Specified by:
submit
in interfaceISentryExecutorService
- Parameters:
callable
- the Callable- Returns:
- a Future of the Callable
-
schedule
- Specified by:
schedule
in interfaceISentryExecutorService
-
close
public void close(long timeoutMillis) Description copied from interface:ISentryExecutorService
Closes the ThreadExecutor and awaits for the timeout- Specified by:
close
in interfaceISentryExecutorService
- Parameters:
timeoutMillis
- the timeout in millis
-
isClosed
public boolean isClosed()Description copied from interface:ISentryExecutorService
Check if there was a previous call to the close() method.- Specified by:
isClosed
in interfaceISentryExecutorService
- Returns:
- If the executorService was previously closed
-