Package com.yahoo.concurrent
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 Summary
Constructors Constructor Description InThreadExecutorService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long timeout, TimeUnit unit)
void
execute(Runnable command)
boolean
isShutdown()
boolean
isTerminated()
void
shutdown()
List<Runnable>
shutdownNow()
-
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
-