Package org.apache.lucene.util
Class SameThreadExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
org.apache.lucene.util.SameThreadExecutorService
- All Implemented Interfaces:
Executor
,ExecutorService
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
awaitTermination
(long timeout, TimeUnit unit) void
boolean
boolean
void
shutdown()
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
Constructor Details
-
SameThreadExecutorService
public SameThreadExecutorService()
-
-
Method Details
-
execute
-
shutdownNow
-
shutdown
public void shutdown() -
isTerminated
public boolean isTerminated() -
isShutdown
public boolean isShutdown() -
awaitTermination
- Throws:
InterruptedException
-