Class KriptonDefaultTaskExecutor
java.lang.Object
com.abubusoft.kripton.android.executor.TaskExecutor
com.abubusoft.kripton.android.executor.KriptonDefaultTaskExecutor
public class KriptonDefaultTaskExecutor extends TaskExecutor
The Class KriptonDefaultTaskExecutor.
-
Constructor Summary
Constructors Constructor Description KriptonDefaultTaskExecutor()Instantiates a new kripton default task executor. -
Method Summary
Modifier and Type Method Description voidexecuteOnDiskIO(java.lang.Runnable runnable)Executes the given task in the disk IO thread pool.booleanisMainThread()Returns true if the current thread is the main thread, false otherwise.voidpostToMainThread(java.lang.Runnable runnable)Posts the given task to the main thread.Methods inherited from class com.abubusoft.kripton.android.executor.TaskExecutor
executeOnMainThread
-
Constructor Details
-
KriptonDefaultTaskExecutor
public KriptonDefaultTaskExecutor()Instantiates a new kripton default task executor.
-
-
Method Details
-
executeOnDiskIO
public void executeOnDiskIO(java.lang.Runnable runnable)Description copied from class:TaskExecutorExecutes the given task in the disk IO thread pool.- Specified by:
executeOnDiskIOin classTaskExecutor- Parameters:
runnable- The runnable to run in the disk IO thread pool.
-
postToMainThread
public void postToMainThread(java.lang.Runnable runnable)Description copied from class:TaskExecutorPosts the given task to the main thread.- Specified by:
postToMainThreadin classTaskExecutor- Parameters:
runnable- The runnable to run on the main thread.
-
isMainThread
public boolean isMainThread()Description copied from class:TaskExecutorReturns true if the current thread is the main thread, false otherwise.- Specified by:
isMainThreadin classTaskExecutor- Returns:
- true if we are on the main thread, false otherwise.
-