Class KriptonDefaultTaskExecutor


  • public class KriptonDefaultTaskExecutor
    extends TaskExecutor
    The Class KriptonDefaultTaskExecutor.
    • Constructor Detail

      • KriptonDefaultTaskExecutor

        public KriptonDefaultTaskExecutor()
        Instantiates a new kripton default task executor.
    • Method Detail

      • executeOnDiskIO

        public void executeOnDiskIO​(Runnable runnable)
        Description copied from class: TaskExecutor
        Executes the given task in the disk IO thread pool.
        Specified by:
        executeOnDiskIO in class TaskExecutor
        Parameters:
        runnable - The runnable to run in the disk IO thread pool.
      • postToMainThread

        public void postToMainThread​(Runnable runnable)
        Description copied from class: TaskExecutor
        Posts the given task to the main thread.
        Specified by:
        postToMainThread in class TaskExecutor
        Parameters:
        runnable - The runnable to run on the main thread.
      • isMainThread

        public boolean isMainThread()
        Description copied from class: TaskExecutor
        Returns true if the current thread is the main thread, false otherwise.
        Specified by:
        isMainThread in class TaskExecutor
        Returns:
        true if we are on the main thread, false otherwise.