Speedify SDK for Android  15.0.0
Static Public Member Functions | List of all members
com.speedify.speedifysdk.PooledExecutor Class Referenceabstract

Detailed Description

Helper class for running code off the main thread in a shared threadpool.

Since
7.2

Static Public Member Functions

static Executor getPool ()
 Obtain the shared Executor thread pool. More...
 
static void execute (Runnable runnable)
 Execute a runnable on a shared threadpool. More...
 
static ScheduledFuture<?> schedule (Runnable runnable, int delay)
 Schedule a runnable on a shared threadpool after a specified delay. More...
 

Member Function Documentation

◆ execute()

static void com.speedify.speedifysdk.PooledExecutor.execute ( Runnable  runnable)
static

Execute a runnable on a shared threadpool.

Parameters
runnableA runnable to run
Since
7.2

◆ getPool()

static Executor com.speedify.speedifysdk.PooledExecutor.getPool ( )
static

Obtain the shared Executor thread pool.

Returns
the shared thread pool Executor object
Since
11.6

◆ schedule()

static ScheduledFuture<?> com.speedify.speedifysdk.PooledExecutor.schedule ( Runnable  runnable,
int  delay 
)
static

Schedule a runnable on a shared threadpool after a specified delay.

Parameters
runnableA runnable to run
delaytime in milliseconds
Since
7.4

The documentation for this class was generated from the following file: