Class ThreadedTaskService

    • Constructor Detail

      • ThreadedTaskService

        public ThreadedTaskService()
    • Method Detail

      • shutdown

        public void shutdown​(boolean immediately)
        Specified by:
        shutdown in interface TaskService
      • uncaughtException

        public void uncaughtException​(java.lang.Thread thread,
                                      java.lang.Throwable throwable)
        Specified by:
        uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler
      • contains

        public boolean contains​(java.lang.Runnable runnable)
        Specified by:
        contains in interface TaskService
      • addTask

        public void addTask​(java.lang.Runnable runnable)
        Enqueues a task to run.
        Specified by:
        addTask in interface TaskService
        Parameters:
        runnable - the task to add
        Throws:
        java.lang.IllegalArgumentException - if runnable is null