Class CurrentThreadExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
org.epics.archiverappliance.retrieval.workers.CurrentThreadExecutorService
- All Implemented Interfaces:
AutoCloseable,Executor,ExecutorService
An ExecutorService that runs everything on the current thread.
Used when the data generated by postprocessors is too large to fit in memory.
- Author:
- mshankar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long timeout, TimeUnit unit) voidbooleanbooleanvoidshutdown()Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorService
close
-
Constructor Details
-
CurrentThreadExecutorService
public CurrentThreadExecutorService()
-
-
Method Details
-
shutdown
public void shutdown() -
shutdownNow
-
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
awaitTermination
- Throws:
InterruptedException
-
execute
-