Package 

Class TaskExecutor

  • All Implemented Interfaces:
    java.util.concurrent.Executor , java.util.concurrent.ExecutorService

    
    public final class TaskExecutor
    extends ThreadPoolExecutor
                        

    Executor for tasks that guarantee that only one instance with the same identifier will be run

    • Method Summary

      Modifier and Type Method Description
      static TaskExecutor provide(Context context)
      Future<out Object> submit(TaskRunnable task) Submit a new task to the executor.
      boolean isBusy() Is the task executor currently busy at running tasks
      void execute(Runnable command)
      • Methods inherited from class java.util.concurrent.ThreadPoolExecutor

        allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, execute, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, toString
      • Methods inherited from class java.util.concurrent.AbstractExecutorService

        invokeAll, invokeAny, submit, submit
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait