Class AbstractCallablePool<T>
java.lang.Object
org.nuxeo.lib.stream.pattern.consumer.internals.AbstractCallablePool<T>
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ConsumerPool
,ProducerPool
Execute a pool of callables.
- Since:
- 9.1
-
Field Summary
Modifier and TypeFieldDescriptionprotected final short
protected ExecutorService
protected ExecutorService
-
Constructor Summary
-
Method Summary
-
Field Details
-
nbThreads
protected final short nbThreads -
threadPool
-
supplyThreadPool
-
-
Constructor Details
-
AbstractCallablePool
public AbstractCallablePool(short nbThreads)
-
-
Method Details
-
getErrorStatus
Value to return when there was an exception during execution -
getCallable
-
getThreadPrefix
-
afterCall
-
getNbThreads
public int getNbThreads() -
start
-
runPool
- Throws:
InterruptedException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-