Class Executors


  • public final class Executors
    extends java.lang.Object
    Generic Executor implementations.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.concurrent.Executor directExecutor()
      Immediately calls Runnable.run() on the current thread.
      static java.util.concurrent.Executor mainThreadExecutor()
      Posts executions to the main thread.
      static void shutdownAndAwaitTermination​(java.util.concurrent.ExecutorService pool)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • mainThreadExecutor

        public static java.util.concurrent.Executor mainThreadExecutor()
        Posts executions to the main thread.
      • directExecutor

        public static java.util.concurrent.Executor directExecutor()
        Immediately calls Runnable.run() on the current thread.
      • shutdownAndAwaitTermination

        public static void shutdownAndAwaitTermination​(java.util.concurrent.ExecutorService pool)