Helper class for running code off the main thread in a shared threadpool.
More...
|
| static Executor | getPool () |
| | Obtain the shared Executor thread pool.
|
| |
| static void | execute (Runnable runnable) |
| | Execute a runnable on a shared threadpool.
|
| |
| static ScheduledFuture<?> | schedule (Runnable runnable, int delay) |
| | Schedule a runnable on a shared threadpool after a specified delay.
|
| |
Helper class for running code off the main thread in a shared threadpool.
- Since
- 7.2
◆ execute()
| static void execute |
( |
Runnable | runnable | ) |
|
|
static |
Execute a runnable on a shared threadpool.
- Parameters
-
| runnable | A runnable to run |
- Since
- 7.2
◆ getPool()
| static Executor getPool |
( |
| ) |
|
|
static |
Obtain the shared Executor thread pool.
- Returns
- the shared thread pool Executor object
- Since
- 11.6
◆ schedule()
| static ScheduledFuture<?> schedule |
( |
Runnable | runnable, |
|
|
int | delay ) |
|
static |
Schedule a runnable on a shared threadpool after a specified delay.
- Parameters
-
| runnable | A runnable to run |
| delay | time in milliseconds |
- Since
- 7.4
The documentation for this class was generated from the following file: