Class SameThreadExecutorService

  • All Implemented Interfaces:
    Executor, ExecutorService

    public final class SameThreadExecutorService
    extends AbstractExecutorService
    An ExecutorService that executes tasks immediately in the calling thread during submit.
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • Constructor Detail

      • SameThreadExecutorService

        public SameThreadExecutorService()
    • Method Detail

      • execute

        public void execute​(Runnable command)
      • shutdown

        public void shutdown()
      • isTerminated

        public boolean isTerminated()
      • isShutdown

        public boolean isShutdown()