public class KriptonDefaultTaskExecutor extends TaskExecutor
| Constructor and Description |
|---|
KriptonDefaultTaskExecutor()
Instantiates a new kripton default task executor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
executeOnDiskIO(Runnable runnable)
Executes the given task in the disk IO thread pool.
|
boolean |
isMainThread()
Returns true if the current thread is the main thread, false otherwise.
|
void |
postToMainThread(Runnable runnable)
Posts the given task to the main thread.
|
executeOnMainThreadpublic KriptonDefaultTaskExecutor()
public void executeOnDiskIO(Runnable runnable)
TaskExecutorexecuteOnDiskIO in class TaskExecutorrunnable - The runnable to run in the disk IO thread pool.public void postToMainThread(Runnable runnable)
TaskExecutorpostToMainThread in class TaskExecutorrunnable - The runnable to run on the main thread.public boolean isMainThread()
TaskExecutorisMainThread in class TaskExecutorCopyright © 2019. All rights reserved.