public class WorkManager<W extends Worker<T>,T> extends Object implements MetricConfigurationProvider
| Constructor and Description |
|---|
WorkManager(MetricConfiguration metricConfiguration,
Class<W> workerClass,
int concurrencyLimit) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(T work) |
int |
getConcurrencyLimit() |
MetricConfiguration |
getMetricConfiguration() |
void |
shutDown() |
void |
startUp(WorkerFactory<W,T> workerFactory) |
public WorkManager(MetricConfiguration metricConfiguration, Class<W> workerClass, int concurrencyLimit)
public int getConcurrencyLimit()
public MetricConfiguration getMetricConfiguration()
getMetricConfiguration in interface MetricConfigurationProviderpublic void startUp(WorkerFactory<W,T> workerFactory) throws InterruptedException
InterruptedExceptionpublic void shutDown()
throws InterruptedException
InterruptedExceptionCopyright © 2018. All rights reserved.