Class InThreadExecutorService

java.lang.Object
java.util.concurrent.AbstractExecutorService
com.yahoo.concurrent.InThreadExecutorService
All Implemented Interfaces:
Executor, ExecutorService

public class InThreadExecutorService extends AbstractExecutorService
ExecutorService implementation that runs all tasks in the calling thread. Useful for tests.
Author:
jonmv
  • Constructor Details

    • InThreadExecutorService

      public InThreadExecutorService()
  • 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)
    • execute

      public void execute(Runnable command)