Module id.xfunction

Class SameThreadExecutorService

Object
AbstractExecutorService
SameThreadExecutorService
All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService

public class SameThreadExecutorService extends AbstractExecutorService
Executes all tasks on same thread which submits them.
  • Constructor Details

    • SameThreadExecutorService

      public SameThreadExecutorService()
  • Method Details

    • shutdown

      public void shutdown()
    • shutdownNow

      public List<Runnable> shutdownNow()
    • isShutdown

      public boolean isShutdown()
    • isTerminated

      public boolean isTerminated()
    • awaitTermination

      public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
      Throws:
      InterruptedException
    • execute

      public void execute(Runnable command)