Modifier and Type | Class and Description |
---|---|
static interface |
ProviderExecutor.Preemptable |
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ProviderExecutor() |
Modifier and Type | Method and Description |
---|---|
<P> void |
execute(AsyncTask<P,?,?> task,
P... params)
Execute the given task.
|
void |
execute(Runnable command)
Executes the given command at some time in the future.
|
static ProviderExecutor |
forAuthority(String authority) |
void |
run()
If this thread was constructed using a separate
Runnable run object, then that
Runnable object's run method is called;
otherwise, this method does nothing and returns. |
activeCount, blockedOn, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, parkFor$, parkUntil$, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, unpark$, yield
public static ProviderExecutor forAuthority(String authority)
public <P> void execute(AsyncTask<P,?,?> task, P... params)
ProviderExecutor.Preemptable
, it will
preempt all outstanding preemptable tasks.public void execute(Runnable command)
Executor
Executor
implementation.public void run()
Thread
Runnable
run object, then that
Runnable
object's run
method is called;
otherwise, this method does nothing and returns.
Subclasses of Thread
should override this method.
run
in interface Runnable
run
in class Thread
Thread.start()
,
Thread.stop()
,
Thread.Thread(ThreadGroup, Runnable, String)