Class WorkRunners


  • public class WorkRunners
    extends java.lang.Object
    Interface for posting runnables to be executed on a thread. The runnables must all be executed on the same thread for a given WorkRunner.
    • Method Detail

      • immediate

        @Nonnull
        public static WorkRunner immediate()
      • singleThread

        @Nonnull
        public static WorkRunner singleThread()
      • fixedThreadPool

        @Nonnull
        public static WorkRunner fixedThreadPool​(int n)
      • cachedThreadPool

        @Nonnull
        public static WorkRunner cachedThreadPool()
      • from

        @Nonnull
        public static WorkRunner from​(java.util.concurrent.ExecutorService service)