public class ETLBackgroundThreadManager extends java.lang.Object implements ETLThreadManager
ETLThreadManager
interface for managing threads for ETL Background Execution.
It creates a Cached Thread Pool. The maximum pool size is the value passed into the constructor, unless it is lesser than #MIN_THREADS_FOR_CONCURRENCY
.MIN_THREADS_FOR_CONCURRENCY
Constructor and Description |
---|
ETLBackgroundThreadManager(int maxThreads) |
Modifier and Type | Method and Description |
---|---|
int |
getMaxThreads()
Get the maximum number of threads in the Thread Manager
|
void |
shutdown()
Shut down the Thread Manager.
|
java.util.concurrent.Future<java.lang.Void> |
submit(ExecutionHead head)
Submit a head task to the Thread Manager and return a Future.
|
public int getMaxThreads()
ETLThreadManager
getMaxThreads
in interface ETLThreadManager
public java.util.concurrent.Future<java.lang.Void> submit(ExecutionHead head)
ETLThreadManager
submit
in interface ETLThreadManager
head
- - A runnable which can execute a "head" ETL step.public void shutdown()
ETLThreadManager
shutdown
in interface ETLThreadManager