public class WorkManager<W extends Worker<T>,T> extends Object
| Constructor and Description |
|---|
WorkManager(Class<W> workerClass,
int concurrencyLimit) |
WorkManager(Class<W> workerClass,
int concurrencyLimit,
WorkQueue<T> workQueue) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(T work) |
int |
getConcurrencyLimit() |
void |
shutDown() |
void |
startUp(WorkerFactory<W,T> workerFactory) |
public int getConcurrencyLimit()
public void startUp(WorkerFactory<W,T> workerFactory) throws InterruptedException
InterruptedExceptionpublic void shutDown()
throws InterruptedException
InterruptedExceptionCopyright © 2020. All rights reserved.